问答网

当前位置: 首页 > 知识问答 > linux如何关闭防火墙

linux如何关闭防火墙

知识问答 浏览5次

- 对于 CentOS 7 和更高版本,使用 systemctl 命令:

sudo systemctl stop firewalldsudo systemctl disable firewalld

- 对于 CentOS 6 和 CentOS 7 的旧版本,使用 service 命令:

sudo service iptables stopsudo chkconfig iptables off