用uwsgi --http :8000 --chdir /home/cc/web1(项目地址) --module web1.wsgi 可以正常启动
换成uwsgi ini uwsgi.ini
显示[uWSGI] getting INI configuration from uwsgi.ini
但是lsof查看没有uwsgi进程
查看log日志最后一行报错
还有个问题,如果指定http=192.168.1.1:8000 日志文件里仍然显示地址是0.0.0.0:8000
这是uwsgi配置文件
[uwsgi]
chdir=/home/cc/web1/
module=web1.wsgi:application
socket=/home/cc/web1/script/uwsgi.sock
workers=5
pidfile=/home/cc/web1/script/uwsgi.pid
http=0.0.0.0:8000
#如果指定http=192.168.1.1:8000 日志文件里仍然显示地址是0.0.0.0:8000 《-请看这里
#static-map=/static=/home/cc/web1/static/
uid=www-data
gid=www-data
master=true
vacuum=true
thunder-lock=true
enable-threads=true
harakiri=30
[](
```python
*** Starting uWSGI 2.0.20 (64bit) on [Fri Jan 21 15:55:24 2022] ***
compiled with version: 9.3.0 on 21 January 2022 03:18:57
os: Linux-5.13.0-27-generic #29~20.04.1-Ubuntu SMP Fri Jan 14 00:32:30 UTC 2022
nodename: ubuntu
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 1
current working directory: /home/cc/web1
writing pidfile to /home/cc/web1/script/uwsgi.pid
detected binary path: /home/cc/.local/bin/uwsgi
chdir() to /home/cc/web1/
your processes number limit is 7519
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: enabled
uWSGI http bound on 0.0.0.0:8000 fd 3
**chown(): Operation not permitted [core/utils.c line 2657]** 《=========================请看这里
*** Starting uWSGI 2.0.20 (64bit) on [Fri Jan 21 15:55:39 2022] ***
compiled with version: 9.3.0 on 21 January 2022 03:18:57
```)