0

我正在尝试在 alibabacloud 上部署 django Web 应用程序,一切似乎都运行良好(在虚拟环境中运行 gunicorn --bind 0.0.0.0:8000 project_name.wsgi)

然后在停用虚拟环境并设置之后

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=admin
Group=www-data
WorkingDirectory=/home/admin/project_name
ExecStart=/home/admin/project_name/myprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind 
unix:/home/admin/project_name/project_name.sock project_name.wsgi:application

/etc/systemd/system/gunicorn.service 然后运行我不断sudo systemctl start gunicorn收到错误

Failed to start gunicorn.service: Unit gunicorn.service is masked.

请问我该如何解决这个问题?

我已经尝试过systemctl unmask gunicorn.socket,但它一直向我显示错误

Unit gunicorn.socket does not exist, proceeding anyway.
Failed to unmask unit: The name org.freedesktop.PolicyKit1 was not provided 
by any .service files
4

0 回答 0