frp开机自启

vim /lib/systemd/system/frpc.service

add next text to frpc.service

1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Frp Client
After=network.target
Wants=network.target

[Service]
Restart=on-failure
RestartSec=5
ExecStart=/opt/soft/frp_0.34.1_linux_amd64/frpc -c /opt/soft/frp_0.34.1_linux_amd64/frpc.ini

[Install]
WantedBy=multi-user.target