服务端
下载
配置
把下载好的压缩包上传到服务器
解压后配置服务端文件
vim frps.ini
实例
配置系统文件
vim /etc/systemd/system/frps.service
-----------------------------------------
[Unit]Description=Frp Server Service
After=network.target
[Service]
Type=simple
ExecStart=/root/frp/frps -c /root/frp/frps.ini
ExecStop=/bin/kill $MAINPID
Restart= always
RestartSec=1min
[Install]
WantedBy=multi-user.target
--------------------------------------------
在该行改成自己的路径
sudo systemctl daemon-reload #重载配置
sudo systemctl start frps #开启frps
sudo systemctl status frps #查看状态
开机启动
sudo systemctl enable frps