添加 frpc.sh

This commit is contained in:
lqs 2025-09-22 11:55:04 +08:00
parent 2017e0930f
commit 93cdf33bfc

20
frpc.sh Normal file
View File

@ -0,0 +1,20 @@
/etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now frpc
[Unit]
Description=FRP Client Service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/usr/local/frp
ExecStart=/usr/local/frp/frpc -c /usr/local/frp/frpc.toml
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target