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配置用户,我注释掉了

阅读 9.8k
3 个回答

用超级用户试试

新手上路,请多包涵

clipboard.png
配置文件中指定的ip 和port 必须和启动命令中保持一致

clipboard.png

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题