https://github.com/v2fly/openbsd-install-v2ray
Bash script for installing V2Ray in the OpenBSD operating system
https://github.com/v2fly/openbsd-install-v2ray
Last synced: 12 months ago
JSON representation
Bash script for installing V2Ray in the OpenBSD operating system
- Host: GitHub
- URL: https://github.com/v2fly/openbsd-install-v2ray
- Owner: v2fly
- License: gpl-3.0
- Created: 2020-02-27T09:58:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-03T16:45:33.000Z (about 5 years ago)
- Last Synced: 2025-06-04T03:59:56.777Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 106 KB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openbsd-install-v2ray
> Bash script for installing V2Ray in the OpenBSD operating system
該腳本安裝的文件符合 OpenBSD 作業系統中文件系統的佈局:
https://man.openbsd.org/hier
```
installed: /usr/local/bin/v2ray
installed: /usr/local/bin/v2ctl
installed: /usr/local/lib/v2ray/geoip.dat
installed: /usr/local/lib/v2ray/geosite.dat
installed: /etc/v2ray/00_log.json
installed: /etc/v2ray/01_api.json
installed: /etc/v2ray/02_dns.json
installed: /etc/v2ray/03_routing.json
installed: /etc/v2ray/04_policy.json
installed: /etc/v2ray/05_inbounds.json
installed: /etc/v2ray/06_outbounds.json
installed: /etc/v2ray/07_transport.json
installed: /etc/v2ray/08_stats.json
installed: /etc/v2ray/09_reverse.json
installed: /var/log/v2ray/
installed: /etc/rc.d/v2ray
```
## 依賴軟體
### 安裝 Bash 和 cURL
```
# pkg_add bash curl
```
## 下載
```
# curl -O https://raw.githubusercontent.com/v2fly/openbsd-install-v2ray/master/install-release.sh
```
## 使用
* 該腳本在執行時會提供 `info` 和 `error` 等訊息,請仔細閱讀。
### 安裝和更新 V2Ray
```
# bash install-release.sh
```
### 移除 V2Ray
```
# bash install-release.sh --remove
```
## 參數
```
usage: install-release.sh [--remove | --version number | -c | -f | -h | -l | -p]
[-p address] [--version number | -c | -f]
--remove Remove V2Ray
--version Install the specified version of V2Ray, e.g., --version v4.23.0
-c, --check Check if V2Ray can be updated
-f, --force Force installation of the latest version of V2Ray
-h, --help Show help
-l, --local Install V2Ray from a local file
-p, --proxy Download through a proxy server, e.g., -p http://127.0.0.1:8118 or -p socks5://127.0.0.1:1080
```