当前位置:   article > 正文

永久关闭linux防火墙_linux 永久关闭防火墙

linux 永久关闭防火墙

1.关闭firewalld

  1. 1.临时关闭
  2. systemctl stop firewalld
  3. 2.永久关闭
  4. systemctl disable firewalld

2.关闭seliunx

vim /etc/sysconfig/selinux
  1. # This file controls the state of SELinux on the system.
  2. # SELINUX= can take one of these three values:
  3. # enforcing - SELinux security policy is enforced.
  4. # permissive - SELinux prints warnings instead of enforcing.
  5. # disabled - No SELinux policy is loaded.
  6. SELINUX=disabled #将enforcing改成disabled
  7. # SELINUXTYPE= can take one of three values:
  8. # targeted - Targeted processes are protected,
  9. # minimum - Modification of targeted policy. Only selected processes are protected.
  10. # mls - Multi Level Security protection.
  11. SELINUXTYPE=targeted

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/986875
推荐阅读
相关标签
  

闽ICP备14008679号