vim /lib/systemd/system/frp.service
[Unit]
Deion=Frp Client
After=network.target
Wants=network.target
[Service]
Restart=on-failure
RestartSec= 5
ExecStart=/root/frp_0.52.3_linux_amd64/frpc -c /root/frp_0.52.3_linux_amd64/frpc.toml
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start frp
systemctl enable frp
配置完成以上 就可以使用systemctl restart frp重启frpc服务了

Comments NOTHING