阿里云部署django项目(nginx+uwsgi+python3+mysql),部署后无法通过ip+端口访问,想知道原因,感谢 1.本人在阿里云上部署了本地的一个django项目,按照网上的教程部署后,无法通过ip+端口访问 2.安全组规则已经配置 3.nginx配置如下: server { listen 80; server_name 47.96.109.254;
#access_log logs/host.access.log main;
location / { root html; index index.html index.htm; } server_name 47.96.109.254;
include uwsgi_params;
uwsgi_pass 127.0.0.1:8001;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root html;
#}
location /static {
alias /home/testfk/nginx/static/; #项目静态路径设置
}
uwsgi配置如下:
[uwsgi]
socket = 127.0.0.1:8001
#chmod-socket = 666
chdir = /home/testfk/
ws