firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
centos7 开放端口
原文:http://www.cnblogs.com/yangxunwu1992/p/5898343.html