systemctl和firewall–cmd都可以对防火墙进行操作,但systemctl 是管理Linux中服务命令,可以对服务进行启动、停止、重启、查看状态等操作,而firewall–cmd是Linux中专门用于控制防火墙的命令
(1)开机启动:systemctl enable firewalld.service
(2)开机禁用:systemctl disable firewalld.service
(3)启动防火墙:systemctl start firewalld 或systemctl start firewalld
(4)关闭防火墙:systemctl stop firewalld 或暂时关闭防火墙:systemctl stop firewalld 永久关闭:systemctl disable firewalld
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。