2014-03-13 39 views
0

我是centos命令和脚本的新手。用erpnext安装supervisord

情景: 我已经安装ERPNEXT和工作没关系的服务器上,但我不得不这样做./lib/wnfy.py --serve

我想要做的就是做手工,自动启动它使用supervisord。我安装了gunicorn和nginx。试图启动supervisord这里的错误:

[[email protected] etc]# chkconfig supervisord on [[email protected] etc]# service supervisord start /etc/init.d/supervisord: line 11: ./etc/rc.d/init.d/functionsprog=supervisord: No such file or directory Starting : daemon --pidfile [ -f ]/etc/init.d/supervisord: line 14: success: command not found /etc/init.d/supervisord: line 14: failure: command not found

我还不熟悉如何工作。请指教。提前致谢。

回答

0

您是否安装了主管?按照,

Install supervisor

Initscripts(使用jkoppe的)。

也用于生产设置,使用gunicorn。主管配置它是,

[program:gunicorn] 
    command=gunicorn -b 127.0.0.1:8000 -w 2 -t 120 lib.webnotes.app:application 
    directory=/path/to/erpnext 
    user=erpnext 
    process_name=%(program_name)s 
    autostart=True 
    autorestart=True 
    redirect_stderr=True 
+0

谢谢你先生的帮助。我会尝试在Supervisord.conf中添加你的配置,看看会发生什么。 – user3415137