在 Linux 服务器上部署 nginx 之后不能访问
2022-01-13 本文已影响0人
sttone
转至:https://blog.csdn.net/lipeigang1109/article/details/73295373
-
确认 nginx 配置是否 ok
命令
nginx -t
-
确认网络是否可达。
本机 ping ip 地址。
ping ip
外部 ping 目标服务器 -
是否受防火墙安全控制等。
telnet hostname port
关闭防火墙命令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