設置frp開機自啟
創建服務文件
sudo vim /etc/systemd/system/frpc.service
填入如下信息,ExecStart
請自行替換
[Unit]
Description=Frp Client
After=network.target
Wants=network.target
[Service]
Restart=on-failure
RestartSec=5
ExecStart=/usr/local/frp/frpc_linux_arm
[Install]
WantedBy=multi-user.target
#刷新服務列表:
systemctl daemon-reload
#設置開機自啟
systemctl enable frpc
#關閉開機自啟
systemctl disable frpc
#啟動服務
systemctl start frpc
#停止服務
systemctl stop frpc
#服務狀態
systemctl status frpc