Baker-Street
#查看防火墙状态
systemctl status firewalld

#关闭防火墙
systemctl stop firewalld

#禁止开机启动防火墙
systemctl disable firewalld

#开启防火墙
systemctl start firewalld

===============================================================================

虚拟机centOS7 关闭防火墙后, 有时还是会出现   ping通虚拟机ip  但是telnet虚拟机端口不通     解决办法:disable seLinux

#修改config文件
vi /etc/selinux/config

#注释掉SELINUX=enforcing, 改用disabled

#SELINUX=enforcing
SELINUX=disabled

保存退出
reboot

 

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2022-02-25
猜你喜欢
  • 2022-12-23
  • 2021-07-10
  • 2021-11-23
  • 2021-09-25
  • 2021-06-27
  • 2021-09-12
相关资源
相似解决方案