🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
1.下载tar.gz http://tomcat.apache.org/download-80.cgi we can also use wget to get tar.gz online wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.21/bin/apache-tomcat-9.0.21.tar.gz 2. unzip tar xzvf 3. startup tomcat ./bin/startup.sh 4.access tomcat through localhost:8080 Note: firewall in linux will block the access of 8080, so we need to open 8080 port in firewall in following steps: reference:(https://blog.csdn.net/weixin_42673046/article/details/82901541) 4.1 check firewall running state ``` firewall-cmd --state ``` 4.2 list ports that allowed to be accessed through firewall ``` firewall-cmd --permanent --zone=public --list-ports ``` 4.3 add port access in firewall ``` firewall-cmd --zone=public --add-port=8080/tcp --permanent ``` 4.4 reload firewall ``` firewall-cmd --reload ``` 4.5 list ports again(optional) ``` firewall-cmd --permanent --zone=public --list-ports ``` ![](https://box.kancloud.cn/932b578969bc8d3068ce3b67d00cfe76_599x173.png) 关闭防火墙 ~~~ systemctl stop firewalld.service service firewalld stop ~~~ 启动防火墙 ~~~ systemctl start firewalld.service service firewalld start ~~~ 修改开机启动项 ntsysv