![如何解决“”活动:失败代码=退出;在centos中启动服务时status=203/EXEC”错误](https://linux22.com/image/194365/%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E2%80%9C%E2%80%9D%E6%B4%BB%E5%8A%A8%EF%BC%9A%E5%A4%B1%E8%B4%A5%E4%BB%A3%E7%A0%81%3D%E9%80%80%E5%87%BA%EF%BC%9B%E5%9C%A8centos%E4%B8%AD%E5%90%AF%E5%8A%A8%E6%9C%8D%E5%8A%A1%E6%97%B6status%3D203%2FEXEC%E2%80%9D%E9%94%99%E8%AF%AF.png)
我正在尝试为我的烧瓶应用程序创建一个系统服务。这是我的服务应用程序
comission_project.service
[Unit]
Description=uWSGI instance to server comission project
Requires = network.target
After=network.target
[Service]
ExecStart=/home/schirag/comission_project/venv/bin/python3" "/home/schirag/Desktop/comission_project/Hello.py
WorkingDirectory=/home/schirag/Desktop/comission_project
User=schirag
Environment="PATH=/home/schirag/Desktop/comission_project/venv"
[Install]
WantedBy=multi-user.target
启动并启用该服务后,我得到以下状态:
comission_project.service - uWSGI instance to server comission project
Loaded: loaded (/etc/systemd/system/comission_project.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-08-13 12:50:18 IST; 30min ago
Main PID: 22192 (code=exited, status=203/EXEC)
Aug 13 12:50:18 localhost.localdomain systemd[1]: Started uWSGI instance to server comission project.
Aug 13 12:50:18 localhost.localdomain systemd[1]: comission_project.service: Main process exited, code=exited, status=203/EXEC
Aug 13 12:50:18 localhost.localdomain systemd[1]: comission_project.service: Failed with result 'exit-code
这是我输入命令时的状态 -journalctl -u comission_project
Aug 13 12:50:18 localhost.localdomain systemd[1]: Started uWSGI instance to server comission project.
Aug 13 12:50:18 localhost.localdomain systemd[1]: comission_project.service: Main process exited, code=exited, status=203/EXEC
Aug 13 12:50:18 localhost.localdomain systemd[1]: comission_project.service: Failed with result 'exit-code'.
启动服务需要做什么