python - uwsgi 启动报错bind(): Permission denied

 熊金涟_473 发布于 2022-10-29 07:59

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

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

    2022-10-30 14:48 回答
  • 用超级用户试试

    2022-10-30 14:49 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有