1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - Linux系统 - centos - 正文

君子好学,自强不息!

1.开启防火墙:systemctl start firewalld.service

[root@localhost bin]# systemctl start firewalld.service
[root@localhost bin]#

2.查看状态:firewall-cmd –state 开启状态:running 关闭状态:not running

[root@localhost bin]# firewall-cmd --state
running

3.关闭防火墙:systemctl stop firewalld.service

[root@localhost bin]# systemctl stop firewalld.service
[root@localhost bin]# firewall-cmd --state
not running

4.开机不启动防火墙:systemctl disable firewalld.service

[root@localhost bin]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@localhost bin]# 

本文来源:1818IP

本文地址:https://www.1818ip.com/post/32770.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。