Configure supervisord operation log for centos, centossupervisord

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.