网页错误,查看uwsgi错误日志发现:
Wed Sep 16 06:12:18 2020 - *** uWSGI listen queue of socket "127.0.0.1:8000" (fd: 3) full !!! (101/100) ***
Wed Sep 16 06:12:19 2020 - *** uWSGI listen queue of socket "127.0.0.1:8000" (fd: 3) full !!! (101/100) ***
Wed Sep 16 06:12:20 2020 - *** uWSGI listen queue of socket "127.0.0.1:8000" (fd: 3) full !!! (101/100) ***
Wed Sep 16 06:12:21 2020 - *** uWSGI listen queue of socket "127.0.0.1:8000" (fd: 3) full !!! (101/100) ***
Wed Sep 16 06:12:22 2020 - *** uWSGI listen queue of socket "127.0.0.1:8000" (fd: 3) full !!! (101/100) ***
Wed Sep 16 06:12:23 2020 - *** uWSGI listen queue of socket "127.0.0.1:8000" (fd: 3) full !!! (101/100) ***
是uwsgi队列满了,修改配置信息:
uwsgi:
http: 0.0.0.0:8080
......
listen : 1024(默认值是100,太小了,修改为1024)
重新加载参数配置:
sysctl -p
重启uwsgi:
uwsgi --reload uwsgi.pid
参考自:链接.