systemd & frp

安装

tar -zxvf
rm  frp && ln -s frp_0.58.0_linux_amd64 frp
cat /etc/systemd/system/frps.service 
[Unit]
Description=Frp Server Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/home/lighthouse/frp/frps -c /home/lighthouse/frp/frps.ini

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable frps.service
sudo systemctl start frps.service
sudo systemctl restart frps.service

sudo chmod 755  /home/lighthouse/frp/frps

评论列表