frp安装配置
1. 使用手册
看完这3篇足以把服务建起来,非常方便
2. 服务端安装配置
可直接使用 Docker 的配置进行
3. 客户端下载、 安装、运行
原本也想使用Docker镜像,但发现kvm之间通过Docker通信好像有问题,所幸在宿主机上可以直接使用release文件。 【注意:每次添加新的客户端,要同步更新服务端的端口配置】
3.1. 下载
官网下载地址【注意:s, c两端使用的版本号要相同】
1$ cd ~
2# 下载安装软件
3$ yum install wget tar git
4# 下载 frp
5$ wget -c https://github.com/fatedier/frp/releases/download/v0.34.3/frp_0.34.3_linux_amd64.tar.gz
6$ tar -axvf frp_0.34.3_linux_amd64.tar.gz
7$ rm -rf frp_0.34.3_linux_amd64.tar.gz
8# 下载 frp 配置
9$ git clone https://github.com/Cuile/frp.git
3.2. 安装
1# 此处只能使用硬链接,使用软链接会导致无法启动服务
2# 安装配置文件
3$ mkdir /etc/frp
4$ ln -b ~/frp/conf/frpc-pve.ini /etc/frp/frpc.ini
5# 安装运行文件
6$ ln -b ~/frp_0.34.3_linux_amd64/frpc /usr/bin/frpc
7# 安装服务
8$ ln -b ~/frp_0.34.3_linux_amd64/systemd/frpc.service /lib/systemd/system/frpc.service
3.3. 运行
1$ systemctl enable frpc.service ##设定指定服务开机开启
2$ systemctl disable frpc.service ##设定指定服务开机关闭
3
4$ systemctl start frpc.service
5$ systemctl stop frpc.service
6$ systemctl restart frpc.service
7
8$ systemctl status frpc.service
9$ systemctl list-units | grep frpc
3.4. 更新
通过 git 更新 frpc 的配置后,要重新链接配置文件
1$ bash ~/frp/CentOS/restart.frpc.service.sh
相关专栏文章
- Nuitka 参数列表
- ProxmoxVE 配置 DHCP 网络
- Windows防火墙配置
- 在 CentOS 上部署 NetBIOS
- Tmux 命令
- 配置 CentOS 7 的 CT 容器
- Ncftp 使用手册
- Centos7 安装 Postgresql
- 在CentOS中安装 Laravel 框架
- 虚拟主机安装 Laravel 框架
- snap 设置代理
- Rime输入法设置
- Windows系统配置
- 灌篮高手大结局(全国大赛后) 下
- 灌篮高手大结局(全国大赛后) 上
- VScode 在 Docker 容器内开发
- VSCode 配置 Python 开发环境
- ProxmoxVE 配置 BBR
- ProxmoxVE 关闭订阅提示
- Linux 文本文件操作
- Deepin 使用远程桌面
- Hyper-V 下设置 Deepin 分辨率
- VsCode 使用 Remote SSH 连接 Alpine Linux
- Alpine Linux 安装 Bash
- frp安装配置
- Alpine Linux 配置
- screen 命令
- Systemd 系统工具命令指南
- ProxmoxVE 命令行
- Hyper-V 环境下给 CentOS 磁盘扩容
- Hyper-V 下设置 Ubuntu 分辨率
- Windows 10 家庭版安装 Hyper-V
- Hyper-V 网络设置
- Docker Compose 指令
- 使用 SSH 连接 Github
- Alpine Linux 安装 Docker
- Alpine Linux 网络设置
- 虚拟机安装 Alpine Linux 3.16
- 山克 UPS 安装手册
- Git 命令行
- 使用 Snap 安装 Docker
- (CentOS 7 | Rocky 9) 安装 Docker
- 修复 ProxmoxVE RRD 错误
- FFmpeg脚本
- Yum 版本库管理
- Linux系统内核升级
- iptables 配置
- ProxmoxVE 配置 NAT 网络
- MySQL 数据操作
- 使用 nmcli 配置网络
- 使用 sed 命令操作
- Linux 系统初始化配置
- Github使用Hugo生成Blog
- Docker使用命令
- About
- Search