我已经在数字海洋上进行了设置,我正在尝试通过nginx和gunicorn部署django应用程序,但到目前为止,我一直在使用gunicorn并使其正确连接方面遇到问题。
这也没有任何虚拟环境。
任何人都可以帮助您,任何帮助将不胜感激。
Failed to start gunicorn.service: Unit gunicorn.service is not loaded properly: Exec format error.
See system logs and 'systemctl status gunicorn.service' for details.
root@ubuntu-vpc-do-moon:~# systemctl status gunicorn.service
● gunicorn.service - gunicorn service
Loaded: error (Reason: Exec format error)
active: failed (Result: exit-code) since Tue 2019-11-05 10:25:52 UTC; 4h 12min ago
Main PID: 13071 (code=exited,status=203/EXEC)
Nov 05 10:25:52 ubuntu-vpc-do-moon systemd[1]: Started gunicorn service.
Nov 05 10:25:52 ubuntu-vpc-do-moon systemd[1]: gunicorn.service: Main process exited,code=exited,status=203/EXEC
Nov 05 10:25:52 ubuntu-vpc-do-moon systemd[1]: gunicorn.service: Failed with result 'exit-code'.
Nov 05 12:23:59 ubuntu-vpc-do-moon systemd[1]: /etc/systemd/system/gunicorn.service:9: Executable path specifies a directory: /home/bridgetsarah/voyage/bridgetsarah/ --access-logfile
Nov 05 14:30:23 ubuntu-vpc-do-moon systemd[1]: /etc/systemd/system/gunicorn.service:9: Executable path specifies a directory: /home/bridgetsarah/voyage/bridgetsarah/ --access-logfile
Nov 05 14:37:04 ubuntu-vpc-do-moon systemd[1]: /etc/systemd/system/gunicorn.service:9: Executable path specifies a directory: /home/bridgetsarah/voyage/bridgetsarah/ --access-logfile
lines 1-11/11 (END)
root@ubuntu-vpc-do-moon:~# curl –unix-socket /run/gunicorn/socket http
curl: (3) Failed to convert –unix-socket to ACE; string contains a disallowed character
curl: (3) <url> malformed
curl: (6) Could not resolve host: http
root@ubuntu-vpc-do-moon:~#