Xray-install
3,691
Stars
663
Forks
37
Watchers
3
Open Issues
GPL-3.0
许可证
Shell
语言
2020-11-11
创建时间
2026-11-07
最近更新
项目能做什么
最简便的 Xray 安装与升级工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Xray-install English | [简体中文](README_zh-Hans.md) | [繁體中文](README_zh-Hant.md) Bash script for installing Xray in operating systems such as CentOS / Debian / OpenSUSE that support systemd. **For Alpine or Gentoo Linux users**, please refer to **[OpenRC-specific instructions](alpinelinux/README.md)** for installation scripts and guides for Alpine/Gentoo Linux. > [!WARNING] > > **Breaking changes since 2026-10-18** > > **Fresh installations can ignore this notice. When upgrading from older versions, follow these instructions to avoid Xray startup failures or reduced security.** > > 1. **Geodata**: To address some known issues, the data source has changed from Loyalsoldier/v2ray-rules-dat to [XTLS/Xray-rules-dat](https://github.com/XTLS/Xray-rules-dat). Full compatibility with the previous data is not guaranteed. If you need GeoIP country categories other than `cn`, `ru`, and `ir`, run `update-geodata` (renamed from `install-geodata`). If you need special GeoSite categories provided by Loyalsoldier, such as `gfw` or `win-spy`, manually download [Loyalsoldier's geosite.dat](https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat), save it as `geosite-loyalsoldier.dat` in the asset directory, and use `ext:geosite-loyalsoldier.dat:category` in your Xray configuration. > 2. **Log rotation**: Use the `--logrotate` option provided by this installer. Do not configure additional rotation tasks, as they may cause permission or log writing issues. > 3. **File permissions**: In response to the recent wave of 0day vulnerabilities in other software and system components, this installer strengthens service isolation and file permission controls to limit their potential impact on Xray. Services now run under the dedicated `xray` user instead of the shared `nobody` user. Custom runtime users are no longer supported, and permissions on configuration and log directories have been tightened. Check access permissions for your custom configuration files, certificates, and existing installations. > > <details> > <summary>Expand to view file permission requirements</summary> > > The table below shows the secure default permissions automatically set by the current installer. The program and configuration are managed by `root`, and the `xray` user can only read the configuration; the service can write assets and logs. These settings protect logs and configuration files and follow security best practices. > > | Purpose | Path | Owner:Group | Permissions | > | ----------------------- | ----------------------------------- | ----------- | ----------- | > | Xray binary | `/usr/local/bin/xray` | `root:root` | `0755` | > | Configuration directory | `/usr/local/etc/xray/` | `root:xray` | `0750` | > | Configuration files | `/usr/local/etc/xray/*.json` | `root:xray` | `0640` | > | Asset directory | `/usr/lo阅读完整原文
项目深度分析 AI 生成
跨云多节点 Xray 可视化运维控制台 (SaaS/自建版)
| 产品构想 | 基于安装脚本的标准化部署逻辑,提供跨 VPS 供应商的多节点集中监控、一键更新、证书自动续期及配置分发的 Web 仪表盘。 |
| 核心功能 | SSH 批量一键部署、状态与延迟探针、配置热重载、证书管理与日志审计。 |
| 目标用户 | 需要维护多台海外 VPS 的技术极客、跨境工作室 IT 运维。 |
| 难度/周期 | 中等 · 1-2 个月 · 成本:极低(自备服务器与测试 VPS) |
| 收费模式 | Freemium 模式:限制纳管节点数(如 3 台免费),超出按节点月度订阅收费;或售卖开源面板企业版授权。 |
| 竞争风险 | 产品处于敏感网络工具链条,国内推广面临法律合规风险,支付渠道存在冻结风险。 |
| 依据 | 数据支持的判断 |
跨境电商及外贸企业专用网络节点交付系统
| 产品构想 | 将脚本封装进轻量化镜像或交付包,针对出海企业(如 TikTok 运营、跨境电商店铺防关联)提供独享纯净 IP 节点的快速装机与安全隔离解决方案。 |
| 核心功能 | 按店铺隔离的多端口多用户配置、防 DNS 泄漏与合规白名单路由策略、自动化证书配置与安装。 |
| 目标用户 | 外贸中小型企业、跨境电商独立站团队。 |
| 难度/周期 | 中等 · 1 个月 · 成本:低(基础云资源成本) |
| 收费模式 | 一次性解决方案实施费,或按年收取定制维护服务费。 |
| 竞争风险 | 政策与监管合规风险高,跨境运营网络资质要求严格。 |
| 依据 | AI推测 |
自动化安全基线与运维托管工具包 (CLI/Agent)
| 产品构想 | 针对自建代理节点容易遭遇的 0day 提权、弱密码被黑等安全隐患,提供自动化配置检查、系统加固、端口敲门(Port Knocking)与防嗅探配置套件。 |
| 核心功能 | Xray 最佳权限审计、防探测规则一键下发、自动更新漏洞依赖、Fail2ban/UFW 协同防护策略。 |
| 目标用户 | 对安全性要求较高的自建代理用户、海外服务器安全运维人员。 |
| 难度/周期 | 较低 · 2-3 周 · 成本:极低 |
| 收费模式 | 赞助/捐赠模式,或打包为高级安全脚本/订阅服务(如针对专属 GeoIP 规则源收费)。 |
| 竞争风险 | 用户更倾向于寻找免费开源替代脚本,付费转化率较低。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建于 2020-11-11,近 30 天仍在推送 |
| 社区活跃 | Star 3,691 / Fork 663 / Issue 3(数据支持,可自行核实) |
| 许可证 | GPL-3.0 商用需注意传染性条款 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。