1、下载
https://tomcat.apache.org/download-80.cgi
cd /usr/local
wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.73/bin/apache-tomcat-8.5.73.tar.gz
tar -xvf apache-tomcat-8.5.73.tar.gz
mv apache-tomcat-8.5.73 tomcat-8.5
cd tomcat-8.5
vim conf/server.xml
#下载设置8080端口映射的的webapps下的那个项目(uplog)
69 <Connector port="8080" protocol="HTTP/1.1"
70 connectionTimeout="20000"
71 redirectPort="8443" />
152 <Host name="localhost" appBase="webapps"
153 unpackWARs="true" autoDeploy="true"
154 xmlValidation="false" xmlNamespaceAware="false">
155 <Context path="" docBase="/usr/local/tomcat-8.5/webapps/uplog" debug="0" reloadable="true"/>
#启动tomcat
bin/startup.sh
#然后把 *.war 放在tomcat下的webapps下(会自动解压部署)
#开放8080端口,如果是云服务器,需要云管理中开放
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload