这里是 Unix 新手。我正在尝试从gunicorn
开始systemctl
。没有出现错误消息,但它也没有显示在进程列表中:
$ sudo systemctl start gunicorn\n$ ps aux | grep gunicorn\ntest+ 29902 0.0 0.0 14224 924 pts/0 S+ 11:13 0:00 grep --color=auto gunicorn\n
Run Code Online (Sandbox Code Playgroud)\n\n有没有可能它正在运行,但不可见?
\n\n或者如果没有,我该如何调试它没有运行的原因?
\n\n更新:刚刚尝试systemctl status gunicorn
并得到了这个:
\xe2\x97\x8f gunicorn.service - Gunicorn Application Server handling myapp\n Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)\n Active: inactive (dead) (Result: exit-code) since Mon 2016-10-31 11:24:04 EDT; 1min 25s ago\n Process: 30135 ExecStart=/.venv/bin/gunicorn --workers 3 --bind unix:/home/myapp/myapp/myapp.sock myapp.wsgi:application (code=exited, status=200/CHDIR)\n Main PID: 30135 (code=exited, status=200/CHDIR)\n
Run Code Online (Sandbox Code Playgroud)\n\n所以它死了,但我怎样才能找出原因呢?
\n 归档时间: |
|
查看次数: |
9339 次 |
最近记录: |