v2raya 是很适合安装在海纳思系统上的,带图形设置界面且设置简单方便的用于科学上网的工具软件。你可以使用 v2ray 和 xray 核心其中之一。前者成熟稳定,可以同时选择并激活多个节点;后者虽然一次只能选择激活一个节点,但是 xray 性能表现更佳。本人选择的是 v2ray,可以选择多个节点,当节点不稳定时,可以故障转移到别的节点,避免手动切换的麻烦。
如果你想用 v2ray 内核,脚本是:
sudo sh -c "$(wget -qO- https://github.com/v2rayA/v2rayA-installer/raw/main/installer.sh)" @ --with-v2ray
如果你想用 xray 内核,脚本是:
sudo sh -c "$(wget -qO- https://github.com/v2rayA/v2rayA-installer/raw/main/installer.sh)" @ --with-xray
终端上我的安装过程及提示信息:
root@hi3798mv200:~# sudo sh -c "$(wget -qO- https://github.com/v2rayA/v2rayA-installer/raw/main/installer.sh)" @ --with-v2ray
Warning: v2ray not installed, installing v2ray version v5.41.0
Downloading v2ray version v5.41.0
Downloading from https://github.com/v2fly/v2ray-core/releases/download/v5.41.0/v2ray-linux-arm64-v8a.zip
#=#=- # # #=O=# # # -#O=- # # # -=O#- # # # -=O=-# # # # -=O=- # # # # ######################################################################################################################################################################################################################################################### 100.0%
Warning: v2rayA not installed, installing v2rayA version v2.2.7.4
Downloading v2rayA version v2.2.7.4
Downloading from https://github.com/v2rayA/v2rayA/releases/download/v2.2.7.4/v2raya_linux_arm64_2.2.7.4
#=#=- # # #=O=# # # -#O=- # # # -=O#- # # # -=O=-# # # # -=O=- # # # # ######################################################################################################################################################################################################################################################### 100.0%
Downloading v2rayA service file
Downloading from https://github.com/v2rayA/v2rayA-installer/raw/main/systemd/v2raya.service
#=#=- # # #=O=# # # -#O=- # # # -=O#- # # # -=O=-# # # # -=O=- # # # # ######################################################################################################################################################################################################################################################### 100.0%
v2ray version v5.41.0 installed successfully!
v2rayA version v2.2.7.4 installed successfully!
--------------------------------------------------------------------------------
Commands:
Start v2rayA service now:
systemctl start v2raya
Start v2rayA service at system boot:
systemctl enable v2raya
--------------------------------------------------------------------------------
1. v2rayA has been installed to your system, the configuration directory is
/usr/local/etc/v2raya.
2. v2rayA will not start automatically, you can start it by yourself.
3. If you want to uninstall v2rayA, please run uninstaller.sh.
4. If you want to update v2rayA, please run installer.sh again.
5. Official website: https://v2raya.org.
6. If you forget your password, run "v2raya-reset-password" to reset it.
--------------------------------------------------------------------------------
root@hi3798mv200:~#
从提示信息来看:
- v2rayA 已安装到您的系统,配置目录为 /usr/local/etc/v2raya。
- v2rayA 不会自动启动,您需要手动启动它。
- 如果您想卸载 v2rayA,请运行 uninstaller.sh。
- 如果您想更新 v2rayA,请再次运行 installer.sh。
- 官方网站:https://v2raya.org。
- 如果您忘记了密码,请运行 v2raya-reset-password 来重置。
- 手动启动 v2raya 服务和设成自动运行的命令:
用下面的命令把 v2raya 启动起来:
systemctl start v2raya
用下面的命令把 v2raya 置成开机后自动运行
systemctl enable v2raya