我已经使用Django REST框架和Django通道制作了服务器,但是我无法配置主管以与其一起运行。我的主管配置如下:
[program:frnd_django]
socket=tcp://localhost:8000
directory=/home/coldbrewtech/frnd/backend/dating-app-backend/django-server/cbproj/
environment=DJANGO_SETTINGS_MODULE=cbproj.dev_settings
command=/home/coldbrewtech/frnd/backend/env/bin/daphne -u /run/daphne/daphne%(process_num)d.sock --fd 0 --access-log - --proxy-headers cbproj.asgi:application
stdout_logfile=/home/coldbrewtech/frnd/backend/dating-app-backend/django-server/cbproj/logs/django_out.log
stderr_logfile=/home/coldbrewtech/frnd/backend/dating-app-backend/django-server/cbproj/logs/django_err.log
numprocs=4
process_name=asgi%(process_num)d
autostart=true
autorestart=true
user=root
startsecs=10
stopwaitsecs=600
stopasgroup=true
stopsignal=KILL
我得到的错误如下:
2019-05-21 18:03:50,111 INFO Starting server at fd:fileno=0, unix:/run/daphne/daphne3.sock
2019-05-21 18:03:50,121 INFO HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2019-05-21 18:03:50,125 INFO Configuring endpoint fd:fileno=0
2019-05-21 18:03:50,130 INFO Starting server at fd:fileno=0, unix:/run/daphne/daphne1.sock
2019-05-21 18:03:50,131 INFO Starting server at fd:fileno=0, unix:/run/daphne/daphne0.sock
2019-05-21 18:03:50,132 INFO HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2019-05-21 18:03:50,133 INFO Configuring endpoint fd:fileno=0
2019-05-21 18:03:50,134 INFO HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2019-05-21 18:03:50,145 INFO Configuring endpoint fd:fileno=0
2019-05-21 18:03:50,154 INFO Starting server at fd:fileno=0, unix:/run/daphne/daphne2.sock
2019-05-21 18:03:50,158 CRITICAL Listen failure: [Errno 88] Socket operation on non-socket
2019-05-21 18:03:50,159 INFO HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2019-05-21 18:03:50,160 INFO Configuring endpoint fd:fileno=0
2019-05-21 18:03:50,163 CRITICAL Listen failure: [Errno 88] Socket operation on non-socket
2019-05-21 18:03:50,160 INFO Configuring endpoint unix:/run/daphne/daphne3.sock
2019-05-21 18:03:50,168 CRITICAL Listen failure: [Errno 88] Socket operation on non-socket
2019-05-21 18:03:50,177 INFO Configuring endpoint unix:/run/daphne/daphne0.sock
2019-05-21 18:03:50,181 INFO Configuring endpoint unix:/run/daphne/daphne1.sock
2019-05-21 18:03:50,192 CRITICAL Listen failure: [Errno 88] Socket operation on non-socket
2019-05-21 18:03:50,204 INFO Configuring endpoint unix:/run/daphne/daphne2.sock
我不确定这是达芙妮问题还是主管问题