Python 为什么我的nginx(engine-x)没有侦听我的请求。?

Python 为什么我的nginx(engine-x)没有侦听我的请求。?,python,nginx,gunicorn,Python,Nginx,Gunicorn,我已经创建了一个小应用程序,并按照下面url给出的说明运行 我已经在/iec/nginx/sites enabled目录中创建了一个示例文件 server { listen localhost:8000; location / { proxy_pass http://127.0.0.1:8001; } location /static/ { autoindex on; alias /home/mulagala/nginx_example/mysite/static/

我已经创建了一个小应用程序,并按照下面url给出的说明运行

我已经在
/iec/nginx/sites enabled
目录中创建了一个
示例
文件

server {
listen localhost:8000;

location / {
    proxy_pass http://127.0.0.1:8001;
}

location /static/ {
    autoindex on;
    alias /home/mulagala/nginx_example/mysite/static/;
}
}

但是当我尝试连接
localhost:8000
时,我遇到了无法连接的错误。为什么我的
nginx
服务器没有侦听我的请求。我犯了什么错误。任何帮助都将被告知

检查nginx是否正在实际运行(ps-e | grep nginx)并在8000端口(netstat-antp | grep 8000)上侦听@Pixou,是的,我检查了
服务nginx状态
其正在运行