安裝 supervisor

wget https://pypi.Python.org/packages/44/80/d28047d120bfcc8158b4e41127706731ee6a3419c661e0a858fb0e7c4b2d/supervisor-3.3.0.tar.gzjava

安裝:python setup.py install    python

生成配置文件:echo_supervisord_conf >/etc/supervisord.confurl

 

配置文件:.net

[program:semUrlScan]rest

command=java -jar /opt/sem_urlscan_task/sem_urlscan_task.jarget

directory=/opt/sem_urlscan_taskit

autostart=truebfc

autorestart=true配置

stderr_logfile=/opt/sem_urlscan_task/sem.error.logfile

stdout_logfile=/opt/sem_urlscan_task/sem.out.log

user=chao

stopsignal=INT

 

啓動:supervisord -c /etc/supervisord.conf

查看狀態 supervisorctl status

相關文章
相關標籤/搜索