1、服務器可ping通
2、服務器抓本地的http請求包,可以抓到
3、本地抓服務器返回的http響應包,抓不到
經過查找,是由於開啟了Linux防火牆
查看防火牆配置(需要root權限)
[root@localhost ~]# service iptables status Redirecting to /bin/systemctl status iptables.service iptables.service - IPv4 firewall with iptables Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled) Active: inactive (dead)
關閉防火牆(需要root權限)
[root@localhost ~]# service iptables stop