firewall-cmd --list-all 查看开启的端口
firewall-cmd --add-port=80/tcp --permanent 看放80端口 开启端口后,要重新加载firewall
firewall-cmd --reload
1.在linux上安装tomcat 并启动
开启8080端口
2.配置nginx.conf
server_name 就是本机的ip
通过location去跳转到 8080