# automatically-install-frp-linux **Repository Path**: cuoxianxu/automatically-install-frp-linux ## Basic Information - **Project Name**: automatically-install-frp-linux - **Description**: 自动在您的linux系统中配置内网穿透frp最新的服务,包括更新 - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-06-23 - **Last Updated**: 2026-01-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # automatically-install-frp-linux 致力于最好用的自动化脚本 一键自动化安装、配置和管理 FRP 内网穿透服务(支持服务端和客户端) 脚本作者:@错弦序 cuoxianxu ## 功能描述 本脚本采用模块化设计,提供 FRP(Fast Reverse Proxy)的全流程管理,包括自动安装、配置生成、服务启停及版本管理,支持服务端(FRPS)和客户端(FRPC)双向部署,适配主流 Linux 系统。 ## 软件架构 ### 核心模块 - **环境检测模块**:检查系统依赖(curl、wget、tar)、验证 root 权限、检测系统架构 - **版本管理模块**:从 GitHub API 获取最新版本、支持指定版本安装、自动适配系统架构 - **核心功能模块**:FRPS/FRPC 的安装/配置/启动/卸载、systemd 系统服务集成、配置文件自动生成 - **用户交互模块**:彩色命令行界面、交互式配置向导、操作结果可视化展示 ## 安装教程 1. **下载脚本** ```bash wget https://gitee.com/cuoxianxu/automatically-install-frp-linux.git ``` 2. **赋予执行权限** ```bash chmod +x automatically-install-frp-linux.sh ``` 3. **以 root 权限运行** ```bash sudo ./automatically-install-frp-linux.sh ``` 4. **选择安装模式**: - 服务端 (FRPS):提供外网访问入口 - 客户端 (FRPC):连接服务端实现内网穿透 ## 使用说明 ### 服务端 (FRPS) 配置 1. 选择 "管理 frps" → "安装 frps" 2. 按提示配置: - 绑定端口(默认 7000) - 认证令牌(自动生成或自定义) - 是否启用仪表盘(默认启用) 3. 安装完成后查看连接信息 ### 客户端 (FRPC) 配置 1. 选择 "管理 frpc" → "安装 frpc" 2. 按提示配置: - 服务端 IP 地址 - 服务端端口 - 认证令牌 - 添加代理(如 SSH、Web 服务等) 3. 启动服务完成配置 ## 管理命令 ```bash # 启动服务 sudo systemctl start frps/frpc # 停止服务 sudo systemctl stop frps/frpc # 重启服务 sudo systemctl restart frps/frpc # 查看状态 sudo systemctl status frps/frpc ``` ## 参与贡献 1. **Fork 本仓库** 2. **创建特性分支** ```bash git checkout -b feat/new-feature ``` 3. **提交代码** ```bash git add . git commit -m "添加新功能: xxx" ``` 4. **推送分支** ```bash git push origin feat/new-feature ``` 5. **创建 Pull Request** ## 特技 - **多语言支持**:通过 Readme_zh.md 和 Readme_en.md 支持中英文文档 - **配置备份**:升级时自动保留现有配置文件,关键信息保存到日志 - **错误处理**:网络请求自动重试、详细错误提示、安装过程回滚能力 - **兼容性**:支持 Debian/Ubuntu/CentOS 等主流发行版,自动检测架构(x86_64/arm64/armv7l) ## 示例输出 ``` ===================================================== frp 管理脚本 by 错弦序 ===================================================== 正在检测现有服务状态... - 服务端 (frps): 已安装并正在运行 - 客户端 (frpc): 未安装或未运行 ===================================================== 请选择您要管理的服务端: 1. 管理 frps (服务端) 2. 管理 frpc (客户端) 0. 退出脚本 请输入您的选择 [0-2]: 0 感谢使用,脚本退出。 ```