- 下载Tomcat压缩包
wget --no-check-certificate https: //mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.88/bin/apache-tomcat-8.5.88.tar.gz
- 解压刚刚下载Tomcat包
tar -zxvf apache-tomcat-8.5.88.tar.gz
- 修改Tomcat名字
mv apache-tomcat-8.5.88 /usr/local/Tomcat8.5
- 为Tomcat授权
chmod +x /usr/local/Tomcat8.5/bin/*.sh
- 修改Tomcat默认端口号为80,,Tomcat默认端口号为8080
sed -i 's/Connector port="8080"/Connector port="80"/' /usr/local/Tomcat8.5/conf/server.xml
- 启动Tomcat
/usr/local/Tomcat8.5/bin/./startup.sh
- 访问Tomcat。
打开浏览器,在地址栏中输入公网IP,例如:101.0.0.1
8.显示
搭建完成