Centos 7安装Tomcat
1:下载Tomcat的tar包
wget https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.34/bin/apache-tomcat-8.5.34.tar.gz
2:解压缩tar包
tar -zxvf apache-tomcat-8.5.34.tar.gz
3:移动到目录/usr/local(随意,你应该不会安装到root目录吧?)
mv apache-tomcat-8.5.34 /usr/local/apache-tomcat-8.5.34
4:Tomcat端口默认8080
vi /usr/local/apache-tomcat-8.5.34/conf/server.xml
修改Connector port="8080" protocol="HTTP/1.1"
5.启动tomcat
/usr/local/apache-tomcat-8.5.34/bin/startup.sh
Ps:确定已安装jdk