centos 7.4nginx
1.能夠ping通IP ,用IP訪問nginx 不能訪問,在服務器上curl localhost curl 185.239.226.111能夠得到centos
[root@izm5e16gjdevwdl8q7q3qoz ~]# curl 185.239.226.111
curl: (7) Failed connect to 185.239.226.111:80; No route to host服務器
iptables -F 清空防火牆配置 這時候查詢iptables是沒有運行的 還有firewalld也是沒有運行curl
[root@xs185239226111 network-scripts]# iptables -Furl
這種方法重啓會失效blog
查詢是否開啓iptablesip
service iptables status table
systemctl status iptables.service 配置