下载
github 下载地址 https://github.com/fatedier/frp/releases
Linux下载frp_0.37.1_linux_amd64.tar.gz 并解压
配置
frps.ini
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 7080
vhost_https_port = 7443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = freefrps.com
dashboard_pwd = freefrps.com
token = freefrps.com
添加服务
/etc/systemd/system/frps.service
Description=Frp Server Service
[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/home/ubuntu/frp_0.37.1_linux_amd64/frps -c /home/ubuntu/frp_0.37.1_linux_amd64/frps.ini
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target
启动
systemctl enable frps
systemctl start frps