【Nginx】虚拟机可以ping通主机,解决主机ping不通虚拟机

版权声明:咔咔 来自https://blog.csdn.net/fangkang7 https://blog.csdn.net/fangkang7/article/details/84621509

author:咔咔

wechat:fangkangfk

解决问题:主机ping不通虚拟机

关闭主机的防护墙即可,centos的关闭防火墙不是iptables,而是firewalld

只需要在虚拟机上关闭防火墙即可

CentOS7默认的防火墙不是iptables,而是firewalle.

#停止firewalld服务

systemctl stop firewalld

#禁用firewalld服务

systemctl mask firewalld

开启

systemctl unmask firewalld

猜你喜欢

转载自blog.csdn.net/fangkang7/article/details/84621509