frp centos 服务端 ¶
安装准备 ¶
- 公网IP
- 需要公网IP,服务端可以云平台的轻量应用服务,如阿里云、腾讯云等
软件需要 ¶
环境 | 系统版本 | frp软件 |
---|---|---|
服务端 | centOS 8 | frp_0.48.0_linux_amd64.tar.gz |
服务端安装配置 ¶
一键安装服务端,默认安装在 root下,如果需要改路径,可以自己下载脚本去改
sh
# centOS 8
bash <(curl -s -S -L https://mirrors.10yun.com/frp/frp_server_centos8.sh)
# centOS 7
依次配置
- 绑定端口(bind_port)
- 管理后台端口(bind_port)
- 管理后台用户(bind_port)
- 管理后台密码(bind_port)
systemctl 指令 ¶
sh
# 启动
systemctl start frps
# 停止
systemctl stop frps
# 重启
systemctl restart frps
# 查看状态
systemctl status frps