{"id":13845996,"url":"https://github.com/stilleshan/frps","last_synced_at":"2025-04-13T07:49:43.433Z","repository":{"id":39158129,"uuid":"239076815","full_name":"stilleshan/frps","owner":"stilleshan","description":"基于原版 frp 内网穿透服务端 frps 的一键安装卸载脚本和 docker 镜像.支持 Linux 服务器和 docker 等多种环境安装部署.","archived":false,"fork":false,"pushed_at":"2024-08-19T06:02:35.000Z","size":34,"stargazers_count":519,"open_issues_count":2,"forks_count":243,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-19T07:25:44.707Z","etag":null,"topics":["frp","frps","frps-docker"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/stilleshan/frps","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stilleshan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-08T05:47:19.000Z","updated_at":"2024-08-19T07:25:47.296Z","dependencies_parsed_at":"2024-04-09T05:21:42.325Z","dependency_job_id":"ad317697-a19b-4e03-80e9-426579d9e7e6","html_url":"https://github.com/stilleshan/frps","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stilleshan%2Ffrps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stilleshan%2Ffrps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stilleshan%2Ffrps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stilleshan%2Ffrps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stilleshan","download_url":"https://codeload.github.com/stilleshan/frps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["frp","frps","frps-docker"],"created_at":"2024-08-04T17:04:16.765Z","updated_at":"2025-04-13T07:49:43.405Z","avatar_url":"https://github.com/stilleshan.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# frps\n## 项目简介\n基于 [fatedier/frp](https://github.com/fatedier/frp) 原版 frp 内网穿透服务端 frps 的一键安装卸载脚本和 docker 镜像.支持 Linux 服务器和 docker 等多种环境安装部署.\n\n- GitHub [stilleshan/frps](https://github.com/stilleshan/frps)\n- Docker [stilleshan/frps](https://hub.docker.com/r/stilleshan/frps)\n\u003e *docker image support for X86 and ARM*\n\n## 更新\n- **2024-02-25** 更新到新版本,支持 toml 配置文件.\n- **2021-05-31** 更新国内镜像方便使用\n- **2021-05-31** 更新 Linux 一键安装脚本同时支持 X86 和 ARM\n- **2021-05-29** 更新从`0.36.2`版本起 docker 镜像同时支持 X86 和 ARM\n\n## 使用\n由于 frps 服务端需要配置参数,本脚本为原版 frps.toml ,安装完毕后请自行编辑 frps.toml 配置端口,密码等相关参数并重启服务.同时你也可以 fork 本仓库后自行修改 frps.toml ,在进行一键安装也非常方便.后期也可自行配置 frps.toml 和调整 frps 的版本.\n\n### 一键脚本(先执行脚本,在自行修改 frps.toml 文件.)\n安装\n```shell\nwget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_install.sh \u0026\u0026 chmod +x frps_linux_install.sh \u0026\u0026 ./frps_linux_install.sh\n# 以下为国内镜像\nwget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_install.sh \u0026\u0026 chmod +x frps_linux_install.sh \u0026\u0026 ./frps_linux_install.sh\n```\n\n使用\n```shell\nvi /usr/local/frp/frps.toml\n# 修改 frps.toml 配置\nsudo systemctl restart frps\n# 重启 frps 服务即可生效\n```\n\n卸载\n```shell\nwget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_uninstall.sh \u0026\u0026 chmod +x frps_linux_uninstall.sh \u0026\u0026 ./frps_linux_uninstall.sh\n# 以下为国内镜像\nwget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_uninstall.sh \u0026\u0026 chmod +x frps_linux_uninstall.sh \u0026\u0026 ./frps_linux_uninstall.sh\n```\n\n### 自定义一键脚本(先 fork 本仓库,在自行修改 frps.toml 文件后执行脚本.)\n- 首先 fork 本仓库\n- 配置 frps.toml\n- 修改 frps_linux_install.sh 脚本\n- 修改脚本链接\n- Push 仓库到 GitHub\n\n#### 修改 frps_linux_install.sh 脚本\n`FRP_VERSION=0.61.2` 可根据原版项目更新自行修改为最新版本.  \n`REPO=stilleshan/frps` 由于 **fork** 到你自己的仓库,需修改`stilleshan`为你的 GitHub 账号ID.\n\n#### 执行一键脚本\n修改以下脚本链接中的`stilleshan`为你的 GitHub 账号 ID 后,执行即可.\n```shell\nwget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_install.sh \u0026\u0026 chmod +x frps_linux_install.sh \u0026\u0026 ./frps_linux_install.sh\n```\n#### 卸载脚本\nfrps_linux_uninstall.sh 卸载脚本为通用脚本,可直接执行,也可同上方式修改链接后执行.\n```shell\nwget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_uninstall.sh \u0026\u0026 chmod +x frps_linux_uninstall.sh \u0026\u0026 ./frps_linux_uninstall.sh\n```\n\n### frps相关命令\n```shell\nsudo systemctl start frps\n# 启动服务 \nsudo systemctl enable frps\n# 开机自启\nsudo systemctl status frps\n# 状态查询\nsudo systemctl restart frps\n# 重启服务\nsudo systemctl stop frps\n# 停止服务\n```\n\n### docker 部署\n为避免因 **frps.toml** 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 **frps.toml** 后在执行启动.\n\n先 **git clone** 本仓库,并正确配置 **frps.toml** 文件.\n```shell\ngit clone https://github.com/stilleshan/frps\n# git clone 本仓库\ngit clone https://github.ioiox.com/stilleshan/frps\n# 国内镜像\nvi /root/frps/frps.toml\n# 配置 frps.toml 文件\n```\n启动容器\n```shell\ndocker run -d --name=frps --restart=always \\\n    --network host \\\n    -v /root/frps/frps.toml:/frp/frps.toml  \\\n    stilleshan/frps\n```\n\u003e 以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frps.toml 文件,并修改命令中的挂载路径.\n\n服务运行中修改 **frps.toml** 配置后需重启 **frps** 服务.\n```shell\nvi /root/frps/frps.toml\n# 修改 frps.toml 配置\ndocker restart frps\n# 重启 frps 容器即可生效\n```\n\n## 链接\n- Blog [www.ioiox.com](https://www.ioiox.com)\n- GitHub [stilleshan/frps](https://github.com/stilleshan/frps)\n- Docker Hub [stilleshan/frps](https://hub.docker.com/r/stilleshan/frps)\n- Docker [docker.ioiox.com](https://docker.ioiox.com)\n- 原版frp项目 [fatedier/frp](https://github.com/fatedier/frp)\n- [CentOS 7 安装配置frp内网穿透服务器端教程](https://www.ioiox.com/archives/5.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstilleshan%2Ffrps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstilleshan%2Ffrps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstilleshan%2Ffrps/lists"}