{"id":15032451,"url":"https://github.com/xtls/xray-install","last_synced_at":"2025-05-14T04:07:33.850Z","repository":{"id":37991963,"uuid":"311922658","full_name":"XTLS/Xray-install","owner":"XTLS","description":"Easiest way to install \u0026 upgrade Xray","archived":false,"fork":false,"pushed_at":"2025-04-30T04:21:15.000Z","size":56,"stargazers_count":2194,"open_issues_count":29,"forks_count":514,"subscribers_count":38,"default_branch":"main","last_synced_at":"2025-04-30T05:25:43.832Z","etag":null,"topics":["vless","xray","xtls"],"latest_commit_sha":null,"homepage":"https://t.me/projectXray","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XTLS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2020-11-11T09:30:07.000Z","updated_at":"2025-04-30T04:48:58.000Z","dependencies_parsed_at":"2023-12-10T19:27:02.284Z","dependency_job_id":"2f8f6554-8848-4f1f-9bf4-4bab1252ddab","html_url":"https://github.com/XTLS/Xray-install","commit_stats":{"total_commits":39,"total_committers":12,"mean_commits":3.25,"dds":0.6923076923076923,"last_synced_commit":"6642e9269798533c31f8a2f7800d3b7a3533b4e0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XTLS%2FXray-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XTLS%2FXray-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XTLS%2FXray-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XTLS%2FXray-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XTLS","download_url":"https://codeload.github.com/XTLS/Xray-install/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069515,"owners_count":22009558,"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":["vless","xray","xtls"],"created_at":"2024-09-24T20:18:27.121Z","updated_at":"2025-05-14T04:07:33.841Z","avatar_url":"https://github.com/XTLS.png","language":"Shell","readme":"# Xray-install\n\nEnglish | [简体中文](README_zh-Hans.md) | [繁體中文](README_zh-Hant.md)\n\nBash script for installing Xray in operating systems such as CentOS / Debian / OpenSUSE that support systemd.\n\n**For Alpine Linux users**, please refer to **[Alpine Linux Specific Instructions](alpinelinux/README.md)** for installation scripts and guides tailored for Alpine Linux.\n\n---\n\n#### [Filesystem Hierarchy Standard (FHS)](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)\n\n```\ninstalled: /etc/systemd/system/xray.service\ninstalled: /etc/systemd/system/xray@.service\n\ninstalled: /usr/local/bin/xray\ninstalled: /usr/local/etc/xray/*.json\n\ninstalled: /usr/local/share/xray/geoip.dat\ninstalled: /usr/local/share/xray/geosite.dat\n\ninstalled: /var/log/xray/access.log\ninstalled: /var/log/xray/error.log\n```\n\nNotice: Xray will NOT log to `/var/log/xray/*.log` by default. Configure `\"log\"` to specify log files.\n\n## Basic Usage\n\n**Install \u0026 Upgrade Xray-core and geodata with `User=nobody`, but will NOT overwrite `User` in existing service files**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ install\n```\n\n**Update geoip.dat and geosite.dat only**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ install-geodata\n```\n\n**Remove Xray, except json and logs**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ remove\n```\n\n## Advance\n\n**Install \u0026 Upgrade Xray-core to a pre-release version**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ install --beta\n```\n\n**Install \u0026 Upgrade Xray-core and geodata with `logrotate`, `$time` can be in the format of 12:34:56**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ install --logrotate $time\n```\n\n```\ninstalled: /etc/systemd/system/logrotate@.service\ninstalled: /etc/systemd/system/logrotate@.timer\n\ninstalled: /etc/logrotate.d/xray\n```\n\n**Install \u0026 Upgrade Xray-core and geodata with `User=root`, which will overwrite `User` in existing service files**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ install -u root\n```\n\n**Install \u0026 Upgrade Xray-core without geodata**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ install --without-geodata\n```\n\n**Remove Xray, include json and logs**\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ remove --purge\n```\n\n## More Usage\n\n```\nbash -c \"$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)\" @ help\n```\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/XTLS/Xray-install.svg)](https://starchart.cc/XTLS/Xray-install)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtls%2Fxray-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtls%2Fxray-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtls%2Fxray-install/lists"}