centos7+Django+uwsgi+Nginx 服务器外网不能访问
本文介绍了centos7+Django+uwsgi+Nginx 服务器外网不能访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
内网访问正常,已经关闭防火墙,外网访问显示连接超时,能ping通115.159.1.99,但ping不通115.159.1.99:8003.
端口开放状态如下:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1397/master
tcp 0 0 127.0.0.1:42338 0.0.0.0:* LISTEN 27413/uwsgi
tcp 0 0 0.0.0.0:8003 0.0.0.0:* LISTEN 27413/uwsgi
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 31473/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3743/sshd
tcp 0 0 10.105.115.210:22 222.182.104.25:50267 ESTABLISHED 7404/sshd: root@pts
tcp 0 0 10.105.115.210:34616 10.193.159.154:9988 ESTABLISHED 1723/secu-tcs-agent
tcp 0 64 10.105.115.210:22 222.182.104.25:49802 ESTABLISHED 5850/sshd: root@pts
tcp6 0 0 :::80 :::* LISTEN 31473/nginx: master
tcp6 0 0 :::22 :::* LISTEN 3743/sshd
求大神解决
解决方案
确定一下内网是不是能访问8003端口
这篇关于centos7+Django+uwsgi+Nginx 服务器外网不能访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文