[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
[Install]
WantedBy=multi-user.target
加入开机启动项: systemctl enable frps
启动frps systemctl start frps
二、配置客户端:
局域网电脑。下载frp linux wget https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_linux_amd64.tar.gz windows https://github.com/fatedier/frp/releases/download/v0.35.1/frp_0.35.1_windows_amd64.zip