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