初缘Cvps小站 发表于 2019-3-17 22:40:39

Frpc后台自动启动的几个方法 ubuntu使用supervisor来控制

本帖最后由 初缘Cvps小站 于 2019-3-17 22:42 编辑

作者博客 GitHub:https://github.com/fatedier/frp
请保持服务端版本号与客户端版本一致,其他版本下载地址:https://github.com/fatedier/frp/releases

大佬们,肯定有更棒的方法,哈,比如screen ?

1.首先先安装supervisor
[*]sudo apt install supervisor复制代码

创建 supervisor frps 配置文件,在 /etc/supervisor/conf.d 创建 frp.conf,将下面内容写入保存。(怎么创建?xsftp了解下)

[*]
[*]command = /usr/local/frp/frpc -c /usr/local/frp/frpc.ini
[*]autostart = true复制代码


我的Frpc存放的路径:/usr/local/frp   (frpc怎么放到这里?xsftp了解下)
frpc为:/usr/local/frp/frpc   ini配置文件为:/usr/local/frp/frpc.ini

写完以后,要重新加载一下supervisor
[*]# 重启supervisor
[*]sudo systemctl restart supervisor
[*]# 查看supervisor运行状态
[*]sudo supervisorctl status复制代码

顺便一提,用宝塔面板,使用KCP 链接可能导致出错误启动不成功,因为KCP是UDP方式对接的,额 宝塔的防火墙UDP好像并没有开。

其他方法到我小小博客一观:https://cvps.top/9019.html   其实我就刷刷水贴。

ZAKA5MJK8I 发表于 2019-3-18 09:11:48

都用systemctl控制supervisor了,干嘛不直接写个systemctl文件,脱裤子放屁么
页: [1]
查看完整版本: Frpc后台自动启动的几个方法 ubuntu使用supervisor来控制