Centos7开启放行端口 查看已放行端口: sudo firewall-cmd --list-ports 放行tcp端口: sudo firewall-cmd --zone=public --add-port=端口号/tcp --permanent