80端口被其他服务占用
server {
listen 9021;
server_name 122.224.171.210;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
linux 内 http://127.0.0.1:9021/ 可以打开访问
但是外网http://122.224.171.210:9021/ 却访问不了
如何检查呢
追答你试一下执行 service iptables stop 把防火墙关闭,看看能不能访问。
追问真心感谢你,关闭掉了是可以外网访问
但是服务器管理员说给我开发的端口
非要说我设置问题....
你让服务器管理人员配置一下端口就可以了,让防火墙允许特定端口进出。