查看ip
ip addr
ip link
添加服务
systemctl enable nginx
添加防火墙端口
firewall-cmd --zone=public --add-port=80/tcp –permanent
重启防火墙
systemctl restart firewalld
查看ip
ip addr
ip link
添加服务
systemctl enable nginx
添加防火墙端口
firewall-cmd --zone=public --add-port=80/tcp –permanent
重启防火墙
systemctl restart firewalld
转载于:https://www.cnblogs.com/coolyylu/p/5736408.html