frp相关链接

https://pan.runyf.cn/Software/frp

服务端配置

bind_port = 7000
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
token = token

log_file = /var/log/frps.log
log_level = info
log_max_days = 7

客户端配置

server_addr = server ip
server_port = 7000
token = token

admin_addr = 127.0.0.1
admin_port = 7400
admin_user = admin
admin_pwd = admin

[web]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 1180

linux设置开机自启

编辑服务 vim /lib/systemd/system/frps.service

[Unit]
Description=Frp Server Service
After=network.target

[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/opt/frp_0.42.0_linux_amd64/frps -c /opt/frp_0.42.0_linux_amd64/frps.ini
# 填写frp对应路径
LimitNOFILE=1048576

[Install]
WantedBy=multi-user.target

服务控制

systemctl enable frps
systemctl  disable frps
systemctl restart frps
systemctl stop frps
systemctl status frps
最后修改:2022 年 07 月 31 日
如果觉得我的文章对你有用,请随意赞赏