Linux虚拟机(Centos7)关闭防火墙


#查看防火墙状态
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

 


免责声明!

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



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