linux***关闭端口分为两种方法,具体介绍如下:
方法一:
重启后生效
开启的具体命令是:chkconfig iptables on
关闭的具体命令是:chkconfig iptables off
验证***是否关闭的具体命令是chkconfig --list |grep iptables
方法二: 即时生效,但重启后失效
开启的具体命令是:service iptables start
关闭的具体命令是:service iptables stop
在centos 7中:
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
以上就是小编的分享了,希望能够帮助到大家。
本站声明:本站部分文章来自网络,由用户上传分享,如若内容侵犯了您的合法权益,可联系我们进行处理。文章仅供大家学习与参考,不**本站立场。