【发布时间】:2021-09-10 21:09:37
【问题描述】:
首先,我已经在机器上运行了一个类似的 Python flask web 服务器。
我正在关注this tutorial,以便使用 Python Flask 托管 Web 服务器。 在第五步(到目前为止没问题),当我测试时:
systemctl status myproject
我明白了
serveurB.service - uWSGI instance to serve serveurB
Loaded: loaded (/etc/systemd/system/serveurB.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2021-06-28 14:25:45 UTC; 1min 53s ago
Process: 7992 ExecStart=/home/sydney/serveurB/serveurB/bin/uwsgi --ini serveurB.ini
(code=exited, status=1/FAILURE)
Main PID: 7992 (code=exited, status=1/FAILURE)
Jun 28 14:25:45 ecocathlon uwsgi[7992]: detected binary path: /home/sydney/serveurB/serveurB/bin/uwsgi
Jun 28 14:25:45 ecocathlon uwsgi[7992]: !!! no internal routing support, rebuild with pcre support !!!
Jun 28 14:25:45 ecocathlon uwsgi[7992]: your processes number limit is 3789
Jun 28 14:25:45 ecocathlon uwsgi[7992]: your memory page size is 4096 bytes
Jun 28 14:25:45 ecocathlon uwsgi[7992]: detected max file descriptor number: 1024
Jun 28 14:25:45 ecocathlon uwsgi[7992]: lock engine: pthread robust mutexes
Jun 28 14:25:45 ecocathlon uwsgi[7992]: thunder lock: disabled (you can enable it with --thunder-lock)
Jun 28 14:25:45 ecocathlon uwsgi[7992]: bind(): Permission denied [core/socket.c line 230]
Jun 28 14:25:45 ecocathlon systemd[1]: serveurB.service: Main process exited, code=exited, status=1/FAILURE
Jun 28 14:25:45 ecocathlon systemd[1]: serveurB.service: Failed with result 'exit-code'.
其中
myproject = serveurB
myprojectenv = serveurB (yes same name, i misstyped that one but i don't think it is the issue)
user = sydney
我之前的所有步骤和文件似乎都是正确的。
提前致谢, 悉尼 R.
【问题讨论】:
标签: python nginx flask digital-ocean uwsgi