昨天在配置好yum源的虚拟机上直接yum安装了nginx
service httpd stop
service nginx start后 用浏览器访问 就是访问不到 nginx
关闭nginx开启httpd服务还是访问不到
ss -tunl | grep 80 是监听的
电脑ping IP也能ping通
访问日志和错误日志都不显示
最后请求远程协助 小威琢磨会儿
iptables -L -n 显示有REJECT规则
service iptables stop 后直接可以访问了
iptables -F 清楚规则
切记 以后坑多着呢 积累吧
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29736547/viewspace-1226559/
,如需转载,请注明出处,否则将追究法律责任。