centos7命令

查看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