基于原版 frp 内网穿透客户端 frpc 的一键安装卸载脚本和 docker 镜像.支持群晖NAS,Linux 服务器和 docker 等多种环境安装部署.
Go to file
Stille 41f4f21c53 Update v0.37.0 2021-06-03 17:49:29 +08:00
.github/workflows Update v0.37.0 2021-06-03 17:49:29 +08:00
.gitignore Create .gitignore 2020-02-08 13:28:02 +08:00
Dockerfile Update v0.37.0 2021-06-03 17:49:29 +08:00
README.md Update v0.37.0 2021-06-03 17:49:29 +08:00
frpc.ini Update v0.34.3 2021-01-19 20:35:58 +08:00
frpc.service Upload frpc.service 2020-02-08 13:29:50 +08:00
frpc_linux_install.sh Update v0.37.0 2021-06-03 17:49:29 +08:00
frpc_linux_uninstall.sh Update v0.37.0 2021-06-03 17:49:29 +08:00
frpc_synology_arm_install.sh Update v0.37.0 2021-06-03 17:49:29 +08:00
frpc_synology_install.sh Update v0.37.0 2021-06-03 17:49:29 +08:00
frpc_synology_uninstall.sh Upload shell script files 2020-02-08 13:30:22 +08:00

README.md

frpc

项目简介

基于 fatedier/frp 原版 frp 内网穿透客户端 frpc 的一键安装卸载脚本和 docker 镜像.支持群晖NAS,Linux 服务器和 docker 等多种环境安装部署.

docker image support for X86 and ARM

更新

2021-05-31 更新国内镜像方便使用
2021-05-31 目前 X86 群晖 DMS 7.0 可直接使用 Linux 版本脚本,已实测.由于没有 ARM 版可尝试,请自行尝试.
2021-05-31 更新 Linux 一键安装脚本同时支持 X86 和 ARM
2021-05-29 更新从0.36.2版本起 docker 镜像同时支持 X86 和 ARM

使用说明

以下分为四种部署方法,请根据实际情况自行选择:

  • 群晖 NAS docker 安装 [支持 docker 的群晖机型首选] 点击查看教程
  • 群晖 NAS 一键脚本安装 [不支持 docker 的群晖机型] 点击查看教程
  • Linux 服务器 一键脚本安装 [内网 Linux 服务器或虚拟机]
  • Linux 服务器 docker 安装 [内网 Linux 服务器或虚拟机]

Linux 服务器 一键脚本安装

本脚本目前同时支持 Linux X86 和 ARM 架构

安装

wget https://raw.githubusercontent.com/stilleshan/frpc/master/frpc_linux_install.sh && chmod +x frpc_linux_install.sh && ./frpc_linux_install.sh
# 国内 gitee 镜像
wget https://gitee.com/stilleshan/frpc/raw/master/frpc_linux_install.sh && chmod +x frpc_linux_install.sh && ./frpc_linux_install.sh

使用

vi /usr/local/frp/frpc.ini
# 修改 frpc.ini 配置
sudo systemctl restart frpc
# 重启 frpc 服务即可生效

卸载

wget https://raw.githubusercontent.com/stilleshan/frpc/master/frpc_linux_uninstall.sh && chmod +x frpc_linux_uninstall.sh && ./frpc_linux_uninstall.sh
# 国内 gitee 镜像
wget https://gitee.com/stilleshan/frpc/raw/master/frpc_linux_uninstall.sh && chmod +x frpc_linux_uninstall.sh && ./frpc_linux_uninstall.sh

Linux 服务器 docker 安装

为避免因 frpc.ini 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 frpc.ini 后在运行启动.

git clone 本仓库,并正确配置 frpc.ini 文件.

git clone https://gitee.com/stilleshan/frpc.git
# git clone 本仓库 gitee 镜像
vi /root/frpc/frpc.ini
# 配置 frpc.ini 文件

执行以下命令启动服务

docker run -d --name=frpc --restart=always -v /root/frpc/frpc.ini:/frp/frpc.ini stilleshan/frpc

以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frpc.ini 文件,并修改命令中的挂载路径.

服务运行中修改 frpc.ini 配置后需重启 frpc 服务.

vi /root/frp/frpc.ini
# 修改 frpc.ini 配置
docker restart frpc
# 重启 frpc 容器即可生效

版本更新

  • latest 为最新版
  • Tags 为历史版本

相关链接

更多frp相关信息可参考我的博客