我对centos命令和脚本都是新手。
场景:我已经安装了ERPNEXT并在服务器上正常工作,但是我必须手动执行./lib/wnfy.py --serve
我想要做的是使用supervisord自动启动。我已经安装了火鸟和尼克斯。在尝试启动监督时,这里有一个错误:
root@vps3 etc# chkconfig supervisord @vps3 etc#服务监督or启动/etc/init.d/etc#or:第11行:./etc/rc.d/init.d/functionsprog= supervisord :没有启动这样的文件或目录: daemon -pidfile -f /etc/init.d/vps3:第14行:成功:命令not /etc/init.d/vps3:第14行:失败:未找到命令
我还不知道事情是如何运作的。请给我建议。提前谢谢。
发布于 2014-03-13 12:49:35
你安装主管了吗?跟着,
安装监控器
Initscript (使用jkoppe )。
此外,生产设置,使用火绒角。它的主管配置是,
[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=Truehttps://stackoverflow.com/questions/22377430
复制相似问题