版权声明: https://blog.csdn.net/lionkas/article/details/82454292
1、下载tomcat安装包
https://tomcat.apache.org/
2、解压缩apache-tomcat-7.0.90.tar.gz文件
tar -xzvf apache-tomcat-7.0.90.tar.gz
3、删除压缩包
rm -rf apache-tomcat-7.0.90.tar.gz
4、将解压缩后的目录移动到/usr/local目录下面(也可以移动到自定义的目录)
mv apache-tomcat-7.0.90 /usr/local
5、启动tomcat服务
#/usr/local/apache-tomcat-7.0.90/bin/startup.sh
cd /usr/local/apache-tomcat-7.0.90/bin
./startup.sh
hu
6、查看系统中启动的tomcat进程
ps -ef | grep tomcat
7、关闭tomcat服务
#/usr/local/apache-tomcat-7.0.90/bin/shutdown.sh
cd /usr/local/apache-tomcat-7.0.90/bin
./shutdown.sh
8、设置tomcat编码
在Connector标签中加入URIEncoding=”UTF-8”
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8" />