python - uwsgi 启动报错bind(): Permission denied
ringa_lee
ringa_lee 2017-04-17 17:36:05
0
2
1052

查了好久,没有找到解决方案
下边是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配置用户,我注释掉了

ringa_lee
ringa_lee

ringa_lee

全部回复(2)
伊谢尔伦

用超级用户试试

巴扎黑

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!