Linux 下 Frps 开机自启设置

方法一 Systemctl

在 /usr/lib/systemd/system 目录 新建 frps.service 文件

[Unit]
Description=Frp Server Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
# 替换为实际安装路径
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
LimitNOFILE=1048576

[Install]
WantedBy=multi-user.target

1632318033152.png

设置开机自启

systemctl daemon-reload
systemctl enable frps
systemctl start frps

# 重启
systemctl restart frps
# 停止
systemctl stop frps
# 查看状态
systemctl status frps

方法二 Supervisor

未完待续......

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容