一、下载frp
二、frps开机自启
sudo vi /etc/systemd/system/frps.service
[Unit]
Description=frps daemon
After=syslog.target network.target
Wants=network.target
[Service]
Type=simple
ExecStart=/root/frp/frps -c /root/frp/frps.ini
Restart= always
RestartSec=1min
[Install]
WantedBy=multi-user.target
sudo systemctl enable frps
sudo systemctl start frps
sudo systemctl status frps
网友评论