安装
wget http://tianyunperfect.oss-cn-hongkong.aliyuncs.com/file/tomcat/tomcat9/apache-tomcat-9.0.16.tar.gz
sudo tar -zxvf apache-tomcat-9.0.16.tar.gz -C /usr/local/
rm ./apache-tomcat-9.0.16.tar.gz
sudo /usr/local/apache-tomcat-9.0.16/bin/startup.sh
# 开机启动
sudo vim /etc/rc.d/init.d/autostart
# tomcat
export JAVA_HOME=/usr/local/jdk1.8.0_191
/usr/local/apache-tomcat-9.0.16/bin/startup.sh
get乱码
vim /usr/local/apache-tomcat-7.0.91/conf/server.xml
<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8"/>