具体情况如下:
防火墙可以ping通虚拟机,虚拟机也可以ping通防火墙。
接着检查了服务器端的80端口是否可以访问的到:telnet 192.168.131.130 80, 结果访问不到,原来果真防火墙的问题。
 
做如下处理:
[root@localhost html]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT  
[root@localhost html]# /etc/init.d/iptables save  
[root@localhost html]# /etc/init.d/iptables restart
至此,OK了,主机已可访问虚拟机的nginx服务。

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2021-06-04
  • 2021-08-02
  • 2022-12-23
  • 2021-04-28
  • 2021-12-12
猜你喜欢
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-07-10
相关资源
相似解决方案