18 Haziran 2013 Salı

Supervisor Kurulumu

Install the Python install tools to install the Supervisor package:
# apt-get -y install python-setuptools
Install the Supervisor package and add it to the system services:
# easy_install supervisor
# curl https://raw.github.com/gist/176149/88d0d68c4af22a7474ad1d011659ea2d27e35b8d/supervisord.sh > supervisord
# chmod +x supervisord
# mv supervisord /etc/init.d/supervisord
# update-rc.d supervisord defaults
Specify the configuration file by adding "-c /etc/supervisord.conf" to the "DAEMON_ARGS" variable:

# vi /etc/init.d/supervisord
DAEMON_ARGS="-c /etc/supervisord.conf"
Create the supervisor configuration files:
# echo_supervisord_conf > /etc/supervisord.conf
# echo [include] >> /etc/supervisord.conf
# echo files=/etc/supervisord/*.conf >> /etc/supervisord.conf
# mkdir /etc/supervisord
Start the service:
# /etc/init.d/supervisord start
Bu "hata.: Başka bir program zaten HTTP sunucularından birini kullanmak üzere yapılandırılmış bir bağlantı noktasını dinlediğini supervisord başlamadan önce ilk olarak bu programı kapatın." Alabilirsiniz Sunucu başladığında. / Tmp / supervisor.sock bağlantısını kesmek bu sorunu giderir.
# unlink /tmp/supervisor.sock
Yapılandırma aşağıdaki komutu kullanın yeniden:
# supervisorctl reload

Hiç yorum yok:

Yorum Gönder