elian91

iptables  -L查看是否有相应的iptables规则

iptables  -F关闭iptables规则

iptables  -t  nat  -F

 

关闭selinux

getenforce  --查看selinux是否开启

临时关闭:

[root@localhost ~]# getenforce
Enforcing

[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive

 

永久关闭:

[root@localhost ~]# vim /etc/sysconfig/selinux

SELINUX=enforcing 改为 SELINUX=disabled

重启服务reboot

分类:

技术点:

相关文章:

  • 2022-01-12
  • 2021-05-27
  • 2021-07-21
  • 2021-05-30
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2022-01-23
  • 2021-12-05
  • 2021-11-26
  • 2021-12-27
  • 2021-11-23
相关资源
相似解决方案