{"id":13457073,"url":"https://github.com/v2fly/fhs-install-v2ray","last_synced_at":"2025-05-13T00:03:24.361Z","repository":{"id":37371856,"uuid":"246751044","full_name":"v2fly/fhs-install-v2ray","owner":"v2fly","description":"Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd","archived":false,"fork":false,"pushed_at":"2024-11-05T11:40:15.000Z","size":223,"stargazers_count":6517,"open_issues_count":18,"forks_count":1465,"subscribers_count":99,"default_branch":"master","last_synced_at":"2025-05-10T04:42:22.933Z","etag":null,"topics":["installer","script","v2ray"],"latest_commit_sha":null,"homepage":"","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/v2fly.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}},"created_at":"2020-03-12T05:27:28.000Z","updated_at":"2025-05-10T03:19:27.000Z","dependencies_parsed_at":"2023-02-10T08:31:15.260Z","dependency_job_id":"84dc1e36-061d-4480-8725-98ea280d8ce7","html_url":"https://github.com/v2fly/fhs-install-v2ray","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/v2fly%2Ffhs-install-v2ray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/v2fly","download_url":"https://codeload.github.com/v2fly/fhs-install-v2ray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843203,"owners_count":21972872,"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":["installer","script","v2ray"],"created_at":"2024-07-31T08:01:32.745Z","updated_at":"2025-05-13T00:03:24.335Z","avatar_url":"https://github.com/v2fly.png","language":"Shell","funding_links":[],"categories":["Shell","字体","v2ray"],"sub_categories":["python lsp"],"readme":"# fhs-install-v2ray\n\n\u003e 欲查阅以简体中文撰写的介绍，请访问：[README.zh-Hans-CN.md](README.zh-Hans-CN.md)\n\n\u003e Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd\n\n該腳本安裝的文件符合 [Filesystem Hierarchy Standard (FHS)](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)：\n\n```\ninstalled: /usr/local/bin/v2ray\ninstalled: /usr/local/bin/v2ctl\ninstalled: /usr/local/share/v2ray/geoip.dat\ninstalled: /usr/local/share/v2ray/geosite.dat\ninstalled: /usr/local/etc/v2ray/config.json\ninstalled: /var/log/v2ray/\ninstalled: /var/log/v2ray/access.log\ninstalled: /var/log/v2ray/error.log\ninstalled: /etc/systemd/system/v2ray.service\ninstalled: /etc/systemd/system/v2ray@.service\n```\n\n## 重要提示\n\n**不推薦在 docker 中使用本專案安裝 v2ray，請直接使用 [官方映象](https://github.com/v2fly/docker)。**  \n如果官方映象不能滿足您自定義安裝的需要，請以**復刻並修改上游 dockerfile 的方式來實現**。  \n\n本專案**不會為您自動生成配置檔案**；**只解決使用者安裝階段遇到的問題**。其他問題在這裡是無法得到幫助的。  \n請在安裝完成後參閱 [文件](https://www.v2fly.org/) 瞭解配置檔案語法，並自己完成適合自己的配置檔案。過程中可參閱社群貢獻的 [配置檔案模板](https://github.com/v2fly/v2ray-examples)  \n（**提請您注意這些模板複製下來以後是需要您自己修改調整的，不能直接使用**）\n\n## 使用\n\n* 該腳本在執行時會提供 `info` 和 `error` 等信息，請仔細閱讀。\n\n### 安裝和更新 V2Ray\n\n```\n// 安裝執行檔和 .dat 資料檔\n# bash \u003c(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)\n```\n\n### 安裝最新發行的 geoip.dat 和 geosite.dat\n\n```\n// 只更新 .dat 資料檔\n# bash \u003c(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)\n```\n\n### 移除 V2Ray\n\n```\n# bash \u003c(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove\n```\n\n### 解決問題\n\n* 「[不安裝或更新 geoip.dat 和 geosite.dat](https://github.com/v2fly/fhs-install-v2ray/wiki/Do-not-install-or-update-geoip.dat-and-geosite.dat)」。\n* 「[使用證書時權限不足](https://github.com/v2fly/fhs-install-v2ray/wiki/Insufficient-permissions-when-using-certificates)」。\n* 「[從舊腳本遷移至此](https://github.com/v2fly/fhs-install-v2ray/wiki/Migrate-from-the-old-script-to-this)」。\n* 「[將 .dat 文檔由 lib 目錄移動到 share 目錄](https://github.com/v2fly/fhs-install-v2ray/wiki/Move-.dat-files-from-lib-directory-to-share-directory)」。\n* 「[使用 VLESS 協議](https://github.com/v2fly/fhs-install-v2ray/wiki/To-use-the-VLESS-protocol)」。\n\n\u003e 若您的問題沒有在上方列出，歡迎在 Issue 區提出。\n\n**提問前請先閱讀 [Issue #63](https://github.com/v2fly/fhs-install-v2ray/issues/63)，否則可能無法得到解答並被鎖定。**\n\n## 貢獻\n\n請於 [develop](https://github.com/v2fly/fhs-install-v2ray/tree/develop) 分支進行，以避免對主分支造成破壞。\n\n待確定無誤後，兩分支將進行合併。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2fly%2Ffhs-install-v2ray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv2fly%2Ffhs-install-v2ray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv2fly%2Ffhs-install-v2ray/lists"}