# 服务端
# 首先需要有公网IP
# 下载
本站frps使用0.40.0版本 (opens new window)
github 下载地址 https://github.com/fatedier/frp/releases
Linux下载frp_0.40.0_linux_amd64.tar.gz 并解压
# 配置参考
frps.ini
bind_addr = 0.0.0.0
bind_port = 7100
dashboard_port = 7101
dashboard_user = freefrps.com
dashboard_pwd = freefrps.com
vhost_http_port = 7102
vhost_https_port = 7103
dashboard_addr = 0.0.0.0
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.40.0_linux_amd64/frps -c /home/ubuntu/frp_0.40.0_linux_amd64/frps.ini
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target
# 启动
systemctl enable frps
systemctl start frps
← 问题