centos7查看端口是否开放
1、centos7中的防火墙改成了firewall,使用iptables无作用,开放端口的方法如下:firewall-cmd --zone=public --add-port=80/tcp --permanent返回success为成功

3、重启防火墙:systemctl restart firewalld.service

5、查看监听(Listen)的端口netstat -lntp

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:88
阅读量:43
阅读量:34
阅读量:81
阅读量:25