使用supervisor设置应用开机自启

1.安装supervisor:

sudo apt install supervisor -y

2.创建配置文件:

 vim /etc/supervisor/conf.d/frpc.conf

3.frpc.conf:

[program:frpc]
command = /root/frpc/frpc -c /root/frpc/frpc.ini
autostart = true

4.重新加载一下supervisor:

# 重启supervisor
sudo systemctl restart supervisor
# 查看supervisor运行状态
sudo supervisorctl status

猜你喜欢

转载自www.cnblogs.com/steinven/p/12243886.html