关闭防火墙并设置开机不启动


systemctl status firewalld.service                  #查看firewall状态

systemctl stop firewalld                                 #关闭

systemctl start firewalld                                #开启

systemctl disable firewalld                            #开机自动关闭

systemctl is-enabled firewalld.service          #查看开机是否启动

systemctl enabled firewalld                          #开机自动启动

--------------------------------------------------------------------------------

了解下面命令:

systemctl                      #列出所有的系统服务

systemctl  list-units       #列出所有启动unit

systemctl list-units --type service       #列出类型为.service的已经启动的unit

systemctl is-enabled sshd                  #查看ssh服务是否开机启动

--------------------------------------------------------------------------------------------------


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM