首页 > uwsgi 启动报错bind(): Permission denied

uwsgi 启动报错bind(): Permission denied

查了好久,没有找到解决方案
下边是nginx配置

 # mysite_nginx.conf

# the upstream component nginx needs to connect to
upstream django {
    # server unix:///path/to/your/mysite/mysite.sock; # for a file socket
    server 127.0.0.1:8001; # for a web port socket (we'll use this first)
}

这个是报错信息

zc@ubuntu:~/blogtest$  uwsgi u.ini
[uWSGI] getting INI configuration from u.ini
*** Starting uWSGI 2.0.12 (64bit) on [Sat Apr 16 23:01:54 2016] ***
compiled with version: 5.2.1 20151010 on 05 April 2016 19:35:26
os: Linux-4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015
nodename: ubuntu
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /home/zc/blogtest
detected binary path: /usr/local/bin/uwsgi
chdir() to /home/zc/blogtest
your processes number limit is 65535
your memory page size is 4096 bytes
detected max file descriptor number: 65535
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
bind(): Permission denied [core/socket.c line 769]

有些是说SELinux,但是ubuntu15上没有这个程序
还有说那个nginx配置用户,我注释掉了


你应该看看日志文件的,看看8001那个端口有没有被占用


用超级用户试试

【热门文章】
【热门文章】