【问题标题】:Installing supervisord with erpnext使用 erpnext 安装 supervisord
【发布时间】:2014-03-13 11:37:36
【问题描述】:

我是 centos 命令和脚本的新手。

场景: 我已经安装了 ERPNEXT 并且在服务器上工作正常,但我必须通过 ./lib/wnfy.py --serve 手动完成它

我想做的是使用 supervisord 自动启动它。我安装了 gunicorn 和 nginx。尝试启动 supervisord 时出现以下错误:

[root@vps3 etc]# chkconfig supervisord on [root@vps3 etc]# service supervisord 启动 /etc/init.d/supervisord:第 11 行: ./etc/rc.d/init.d/functionsprog=supervisord:没有这样的文件或目录 开始:守护进程 --pidfile [ -f ]/etc/init.d/supervisord:第 14 行: 成功:找不到命令 /etc/init.d/supervisord:第 14 行:失败: 找不到命令

我还不熟悉事情的运作方式。请指教。提前致谢。

【问题讨论】:

    标签: nginx gunicorn supervisord erpnext


    【解决方案1】:

    你安装了supervisor吗?关注,

    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
    

    【讨论】:

    • 感谢先生的帮助。我会尝试在 Supervisord.conf 中添加你的配置,看看会发生什么。
    猜你喜欢
    • 1970-01-01
    • 2016-05-12
    • 1970-01-01
    • 2022-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多