下载 & 安装
 Linux
| wget https://github.com/fatedier/frp/releases/download/v0.49.0/frp_0.49.0_linux_amd64.tar.gztar -zxvf frp_0.49.0_linux_amd64.tar.gz
 
 | 
 Windows
https://github.com/fatedier/frp/releases/latest/
 配置 systemd
- 安装
| # yumyum install systemd
 # apt
 apt install systemd
 
 | 
- 创建 frps.service文件
| [Unit]
 Description = frp server
 After = network.target syslog.target
 Wants = network.target
 
 [Service]
 Type = simple
 
 ExecStart = /path/to/frps -c /path/to/frps.ini
 
 [Install]
 WantedBy = multi-user.target
 
 | 
- 使用 systemd命令,管理 frps
| # 启动 frpsystemctl start frps
 # 停止 frp
 systemctl stop frps
 # 重启 frp
 systemctl restart frps
 # 查看 frp 状态
 systemctl status frps
 # 配置 frps 开机自启
 systemctl enable frps
 
 | 
 配置 frps
| [common]bind_port = 7000
 token = abc123456
 
 | 
 配置 frpc
| [common]server_addr = x.x.x.x
 server_port = 7000
 token = abc123456
 
 [ssh]
 type = tcp
 local_ip = 127.0.0.1
 local_port = 3389
 remote_port = 6000
 
 | 
启动