sudo yum install supervisor
cd /etc
sudo vim supervisord.conf
将最后一条信息改为
[include]
files = supervisord.d/*.confsudo vim grpc.conf
cd supervisord.d/
sudo vim 配置启动文件的名字.conf
[program:grpc]
command=路径
启动
sudo supervisord -c /etc/supervisord.conf
加载配置文件
sudo supervisorctl reload
查看状态
sudo supervisorctl status X
重启
sudo supervisorctl restart X
启动
sudo supervisorctl start X
停止
sudo supervisorctl stop X