首页 > 编程知识 正文

centos7开启防火墙命令,centos7防火墙开放端口

时间:2023-05-04 21:39:30 阅读:46674 作者:3765

另一方面,关闭CentOS 6防火墙命令//暂时关闭防火墙服务iptables stop///禁止开机启动防火墙chkconfig iptables off

二、CentOS 7关闭防火墙命令CentOS 7和CentOS 6关闭防火墙命令差异很大。 具体如下。

1.CentOS 7使用systemctl运行命令,CentOS 6使用service运行命令。

2.CentOS 6正在使用iptables。 CentOS 7使用的是防火墙d而不是iptables

在CentOS7中使用相同的命令将报告错误。

# systemctl stop iptables

failedtostopiptables.service : unit iptables.servicenotloaded。

关闭CentOS 7防火墙的命令如下:

//防火墙systemctl stop firewalld//禁止开机启动防火墙systemctl disable firewalld

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。