添加 frpc.sh
This commit is contained in:
parent
2017e0930f
commit
93cdf33bfc
20
frpc.sh
Normal file
20
frpc.sh
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user