Skip to content

Commit 0321743

Browse files
authored
Merge pull request #300 from silencebbb/patch-2
Update install.md
2 parents c144e64 + a5573f1 commit 0321743

1 file changed

Lines changed: 10 additions & 100 deletions

File tree

zh_CN/prep/install.md

Lines changed: 10 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -56,121 +56,31 @@ root@host:/home/user#
5656
在 Linux 操作系统, V2Ray 的安装有脚本安装、手动安装、编译安装 3 种方式,选择其中一种即可,本指南仅提供使用使用脚本安装的方法,并仅推荐使用脚本安装,该脚本由 V2Ray 官方提供。该脚本仅可以在 Debian 系列或者支持 Systemd 的 Linux 操作系统使用。
5757

5858
**除非你是大佬,或者能够自行处理类似 command not found 的问题,否则请你使用 Debian 8.x 以上或者 Ubuntu 16.04 以上的 Linux 系统。**
59-
本指南默认使用 Debian 10 系统作为示范。
6059

61-
### 安装依赖软件
6260

63-
首先安装脚本的依赖软件,根据你的 Linux 发行版选择以下命令。
6461

65-
**注意:下文中需要你输入的命令均以 $ 开头,其他内容均来自系统执行命令的反馈,你可以通过比较自己屏幕上和文档中内容的异同来判断安装是否正确。**
6662

67-
Debian/Ubuntu:
68-
69-
```console
70-
$ apt update
71-
$ apt install curl
72-
```
73-
74-
CentOS/RedHat :
75-
76-
```console
77-
$ yum makecache
78-
$ yum install curl
79-
```
80-
81-
Fedora:
82-
83-
```console
84-
$ dnf makecache
85-
$ dnf install curl
86-
```
63+
### 执行安装
64+
脚本地址 https://github.com/v2fly/fhs-install-v2ray
8765

88-
openSUSE/SUSE:
66+
###安裝和更新 V2Ray
8967

68+
// 安裝執行檔和 .dat 資料檔
9069
```console
91-
$ zypper refresh
92-
$ zypper install curl
70+
# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
9371
```
9472

95-
### 下载安装脚本
96-
97-
下载主程序安装脚本:
9873

74+
###安裝最新發行的 geoip.dat 和 geosite.dat
9975
```console
100-
$ curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
101-
% Total % Received % Xferd Average Speed Time Time Time Current
102-
Dload Upload Total Spent Left Speed
103-
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
104-
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
105-
100 21613 100 21613 0 0 8732 0 0:00:02 0:00:02 --:--:-- 8736
76+
// 只更新 .dat 資料檔
77+
# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)
10678
```
10779

108-
### 执行安装
109-
110-
安装 V2ray 主程序:
11180

81+
###移除 V2Ray
11282
```console
113-
$ bash install-release.sh
114-
Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.27.0/v2ray-linux-64.zip
115-
% Total % Received % Xferd Average Speed Time Time Time Current
116-
Dload Upload Total Spent Left Speed
117-
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
118-
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
119-
100 631 100 631 0 0 331 0 0:00:01 0:00:01 --:--:-- 331
120-
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
121-
100 12.2M 100 12.2M 0 0 841k 0 0:00:14 0:00:14 --:--:-- 1899k
122-
Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.27.0/v2ray-linux-64.zip.dgst
123-
% Total % Received % Xferd Average Speed Time Time Time Current
124-
Dload Upload Total Spent Left Speed
125-
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
126-
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
127-
100 636 100 636 0 0 294 0 0:00:02 0:00:02 --:--:-- 295
128-
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
129-
100 590 100 590 0 0 133 0 0:00:04 0:00:04 --:--:-- 282
130-
Reading package lists... Done
131-
Building dependency tree
132-
Reading state information... Done
133-
Suggested packages:
134-
zip
135-
The following NEW packages will be installed:
136-
unzip
137-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
138-
Need to get 172 kB of archives.
139-
After this operation, 580 kB of additional disk space will be used.
140-
Get:1 http://mirrors.163.com/debian buster/main amd64 unzip amd64 6.0-23+deb10u1 [172 kB]
141-
Fetched 172 kB in 1s (173 kB/s)
142-
Selecting previously unselected package unzip.
143-
(Reading database ... 31383 files and directories currently installed.)
144-
Preparing to unpack .../unzip_6.0-23+deb10u1_amd64.deb ...
145-
Unpacking unzip (6.0-23+deb10u1) ...
146-
Setting up unzip (6.0-23+deb10u1) ...
147-
Processing triggers for mime-support (3.62) ...
148-
Processing triggers for man-db (2.8.5-2) ...
149-
info: unzip is installed.
150-
info: Extract the V2Ray package to /tmp/tmp.vk9AF2EqKA/ and prepare it for installation.
151-
installed: /usr/local/bin/v2ray
152-
installed: /usr/local/bin/v2ctl
153-
installed: /usr/local/share/v2ray/geoip.dat
154-
installed: /usr/local/share/v2ray/geosite.dat
155-
installed: /usr/local/etc/v2ray/00_log.json
156-
installed: /usr/local/etc/v2ray/01_api.json
157-
installed: /usr/local/etc/v2ray/02_dns.json
158-
installed: /usr/local/etc/v2ray/03_routing.json
159-
installed: /usr/local/etc/v2ray/04_policy.json
160-
installed: /usr/local/etc/v2ray/05_inbounds.json
161-
installed: /usr/local/etc/v2ray/06_outbounds.json
162-
installed: /usr/local/etc/v2ray/07_transport.json
163-
installed: /usr/local/etc/v2ray/08_stats.json
164-
installed: /usr/local/etc/v2ray/09_reverse.json
165-
installed: /var/log/v2ray/
166-
installed: /var/log/v2ray/access.log
167-
installed: /var/log/v2ray/error.log
168-
installed: /etc/systemd/system/v2ray.service
169-
installed: /etc/systemd/system/v2ray@.service
170-
removed: /tmp/tmp.vk9AF2EqKA/
171-
info: V2Ray v4.27.0 is installed.
172-
You may need to execute a command to remove dependent software: apt remove curl unzip
173-
Please execute the command: systemctl enable v2ray; systemctl start v2ray
83+
# bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) --remove
17484
```
17585

17686
看到类似于这样的提示就算安装成功了。如果安装不成功脚本会有提示语句,这个时候你应当按照提示除错,除错后再重新执行一遍脚本安装 V2Ray。对于错误提示如果看不懂,使用翻译软件翻译一下就好。

0 commit comments

Comments
 (0)