Configure supervisord operation log for centos, centossupervisord
Supervisor is a server management tool written in python based on the linux operating system,
This function is used to monitor the running of servers and to automatically warn and restart servers when problems are detected.
Centos is installed with python2.7.5 by default. It is best not to change the upgrade. I upgraded python to 2.7.13.
After upgrading python, yum is unavailable. You need to modify/usr/bin/yum and put the first sentence #! /Usr/bin/python #! /Usr/bin/python2.7.5. My point is this address.
The centos7 firewall also uses python2.7.5, so you must modify/usr/bin/firewall-cmd.
Yum info supervisor # view official documentation http://www.supervisord.org/installing.html#installing-to-a-system-with-internet-access
Configuration details
Http://lixcto.blog.51cto.com/4834175/1539136
Http://www.ttlsa.com/linux/using-supervisor-control-program/
Http://www.jianshu.com/p/7d7c00b220bf
Supervisorctl help
I should have set the password, so I need to add the user name and password to the update.
Supervisorctl-u user name-p password update-update
# Control all processes sudo supervisorctl start all sudo supervisorctl stop all sudo supervisorctl restart all # control the specified process sudo supervisorctl stop iot-kb sudo supervisorctl start iot-kb sudo supervisorctl restart iot-kb