在 Linux 服务器上部署 nginx 之后不能访问

原文地址:https://blog.csdn.net/lipeigang1109/article/details/73295373

解决办法:https://jingyan.baidu.com/article/ac6a9a5e317b7c2b653eacde.html

1、确认 nginx 配置是否 ok

  命令 nginx -t

  确认网络是否可达。

2、本机 ping ip 地址。

  ping ip 外部

    ping 目标服务器

  是否受防火墙安全控制等。

3 、telnet hostname port

 4、关闭防火墙命令 iptables -F 排除以上原因之后,远程实际再测试。

问题 telnet connect to address 192.168.1.128: No route to host telnet 192.168.1.128 Trying 192.168.1.128… telnet: connect to address 192.168.1.128: No route to host 解决方法:在 telnet 服务器上执行:iptables -F 参考地址 telnet参考地址 --------------------- 本文来自 davids_3233 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/lipeigang1109/article/details/73295373?utm_source=copy

猜你喜欢

转载自www.cnblogs.com/bisonkeji/p/9688301.html