centos7命令

查看ip

ip addr 

ip link

 

添加服务

systemctl enable nginx

 

添加防火墙端口

firewall-cmd --zone=public --add-port=80/tcp –permanent

重启防火墙

systemctl restart firewalld

posted @ 2016-08-04 13:42  Ender.Lu  阅读(116)  评论(0编辑  收藏  举报