This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11789|Reply: 1

[linux] Supervisor installation configuration for CentOS

[Copy link]
Posted on 5/23/2017 3:24:23 PM | | |
This document is for CentOS, and it is also a note recorded by my environment, and other systems can refer to the reference material at the bottom.

Install the Supervisor
# Install the supervisor
yum install supervisor
# Open the Supervisor's profile
vi /etc/supervisord.conf
Copy the configuration file of supervisord to the /home/supervisord/ directory, which is my habit, and manage the configuration file centrally

# Create a directory first
mkdir /home/supervisord/
# Then copy the file to pass
cp /etc/supervisord.conf /home/supervisord/supervisord.conf
# Edit the profile
vi /home/supervisord/supervisord.conf
Add the following at the end of /home/supervisord/supervisord.conf, this example is to configure shadowsocks

[program:shadowsocks]
command=ss-server -c /home/ss/config.json
user=root
autostart=true
autorestart=true
stderr_logfile=/home/ss/err.log
stdout_logfile=/home/ss/out.log
Finally, start

supervisord -c /home/supervisord/supervisord.conf
If you want supervisord to boot auto-boot

# Edit the startup file
vi /etc/rc.local
# Add the command to execute in the new line
supervisord -c /home/supervisord/supervisord.conf
Common commands
# View all actions
supervisorctl help

# Control all processes
supervisorctl start all
supervisorctl stop all
supervisorctl restart all

# Control the target process
supervisorctl stop shadowsocks
supervisorctl start shadowsocks
supervisorctl restart shadowsocks




Previous:C# Mini Program for Operating MySQL 5.7 [Source Code]
Next:Starting supervisor: Error: Another program is already listening on a port th...
 Landlord| Posted on 5/24/2017 10:54:35 AM |
The installation tutorial above is not correct
The correct ones are as follows:



Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com