gunicorn 启动问题,启动不了

终端输入

nohup /usr/local/bin/python /usr/local/bin/gunicorn -k gevent -b 0.0.0.0:8080 
data.svnup-20150206.aiyou-api.aiyou_chatserver:application &

然后显示

nohup: 忽略输入并把输出追加到"nohup.out"

但是会自动中断

[1]+  Exit 1     nohup /usr/local/bin/python /usr/local/bin/gunicorn -k gevent 
-b 0.0.0.0:8080 data.svnup-20150206.aiyou-api.aiyou_chatserver:application&

进程里面也没有,这个问题该如何解决?求教!


补充调试信息:

[1] 28684
[root@api-test aiyou-api]$[2015-08-03 10:58:21 +0000] [28684] [INFO] Starting gunicorn 19.3.0
[2015-08-03 10:58:21 +0000] [28684] [ERROR] Connection in use: ('0.0.0.0', 8080)
[2015-08-03 10:58:21 +0000] [28684] [ERROR] Retrying in 1 second.
[2015-08-03 10:58:22 +0000] [28684] [ERROR] Connection in use: ('0.0.0.0', 8080)
[2015-08-03 10:58:22 +0000] [28684] [ERROR] Retrying in 1 second.
[2015-08-03 10:58:23 +0000] [28684] [ERROR] Connection in use: ('0.0.0.0', 8080)
[2015-08-03 10:58:23 +0000] [28684] [ERROR] Retrying in 1 second.
[2015-08-03 10:58:24 +0000] [28684] [ERROR] Connection in use: ('0.0.0.0', 8080)
[2015-08-03 10:58:24 +0000] [28684] [ERROR] Retrying in 1 second.
[2015-08-03 10:58:25 +0000] [28684] [ERROR] Connection in use: ('0.0.0.0', 8080)
[2015-08-03 10:58:25 +0000] [28684] [ERROR] Retrying in 1 second.
[2015-08-03 10:58:26 +0000] [28684] [ERROR] Can't connect to ('0.0.0.0', 8080)
阅读 10.9k
3 个回答

我只是想问一下,后台运行的话,为何不用-D参数呢,
你不用nohup 看看调试有什么打印信息

忽略输入应该指的是忽略了&符号

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题