2014-03-13 3 views
0

나는 centos 명령 및 스크립팅에 초보자입니다.erpnext로 supervisord 설치

시나리오 : 내가 ERPNEXT를 설치하고 서버에 괜찮 작동되지만 내가 supervisord를 사용하여 자동으로 시작 ./lib/wnfy.py --serve

내가하고 싶은 것은을 수행하여 수동으로해야한다. 나는 gunicorn과 nginx를 설치했다. 수퍼바이저 시작을 시도 할 때 여기에 오류가 있습니다.

[[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