frp 客户端开机启动
作者:互联网
frp systemd 配置
创建system服务
# cat /etc/issue
Ubuntu 18.04.5 LTS \n \l
vim /lib/systemd/system/frpc.service
[Unit]
Description=FRP Client Daemon
After=network-online.target
[Service]
ExecStart=/root/frp/frpc -c /root/frp/frpc.ini
Restart=always
RestartSec=20s
[Install]
WantedBy=multi-user.target
- 开机启动服务
# systemctl daemon-reload
# systemctl enable frpc.service
# systemctl restart frpc.service
# systemctl status frpc.service
参考:
标签:systemctl,target,service,system,frp,frpc,开机,客户端 来源: https://blog.csdn.net/u010953692/article/details/120091477