vps+v2Ray教程(3):在VPS上安装V2Ray并启动

itlao6 原创 工具&方法 网络助手92,237字数 1653阅读5分30秒阅读模式

注意:此教程及根据教程搭建的梯子仅供学习及资料查阅使用,请勿用于非法用途,本站不建议也不鼓励使用梯子进行任何非法用途,所有使用该教程导致的法律责任自行承担

继续科学上网之旅!之前写了如何购买vps 及使用SSH登录vps(不了解的见 vps+v2_Ray教程(1):购买 VPS (以搬瓦工VPS为例,附优惠码)使用SSH登录VPS),今天我们来完成在VPS上安装v2并启动

广告推广:最近朋友推荐这个收费vpn,体验了一下,价格不贵,速度和稳定性也都不错,有需要的可以试试:优云vpn点击进入 (注意,网站首页有优惠码,半年、一年、二年,8折优惠码:z80优云vpn备用地址点击进入文章源自IT老刘-https://itlao6.com/2050.html

一、首先,我们需要安装wget

yum -y install wget文章源自IT老刘-https://itlao6.com/2050.html

在ssh中使用以上命令自动安装,与前面介绍一致,最终以 “[root@xxxxxx-xxxx-x ~]#” 结尾,则说明 wget 已经安装完成 vps+v2Ray教程(3):在VPS上安装V2Ray并启动文章源自IT老刘-https://itlao6.com/2050.html

二、下载安装 v2 的脚本

wget https://install.direct/go.sh文章源自IT老刘-https://itlao6.com/2050.html

同样的,自动完成。以 “[root@xxxxxx-xxxx-x ~]#” 结尾则表示成功 vps+v2Ray教程(3):在VPS上安装V2Ray并启动文章源自IT老刘-https://itlao6.com/2050.html

三、安装unzip

yum install -y zip unzip文章源自IT老刘-https://itlao6.com/2050.html

与之前一致,以 “[root@xxxxxx-xxxx-x ~]#” 结尾则表示结束(这一步可能耗时较长,稍等一会,等它自动执行完毕即可) vps+v2Ray教程(3):在VPS上安装V2Ray并启动文章源自IT老刘-https://itlao6.com/2050.html

四、安装v2

bash go.sh文章源自IT老刘-https://itlao6.com/2050.html

执行以上命令,当窗口中出现 “v2ray Vx.x.x is installed”,表示已经安装完成,下图最后一行v2ray V4.23.1表示安装了当前v2ray最新版本4.23.1 vps+v2Ray教程(3):在VPS上安装V2Ray并启动文章源自IT老刘-https://itlao6.com/2050.html

如果执行以上步骤提示如下错误信息:文章源自IT老刘-https://itlao6.com/2050.html

ERROR: This script has been DISCARDED, please switch to fhs-install-v2ray project.文章源自IT老刘-https://itlao6.com/2050.html

HOW TO USE: https://github.com/v2fly/fhs-install-v2ray文章源自IT老刘-https://itlao6.com/2050.html

TO MIGRATE: https://github.com/v2fly/fhs-install-v2ray/wiki/Migrate-from-the-old-script-to-this文章源自IT老刘-https://itlao6.com/2050.html

使用以下脚本:文章源自IT老刘-https://itlao6.com/2050.html

curl -Ls https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh | sudo bash文章源自IT老刘-https://itlao6.com/2050.html

五、启动v2并设置开机自启动

systemctl start v2ray文章源自IT老刘-https://itlao6.com/2050.html

systemctl enable v2ray文章源自IT老刘-https://itlao6.com/2050.html

分别执行以上两个命令即可启动v2ray,并将v2ray设置为开机自启动 为了检测是否启动成功,我们可以使用以下命令文章源自IT老刘-https://itlao6.com/2050.html

service v2ray status文章源自IT老刘-https://itlao6.com/2050.html

六、查看v2配置信息

cat /etc/v2ray/config.json文章源自IT老刘-https://itlao6.com/2050.html

通过以上指令,我们可以获取到相关配置信息 vps+v2Ray教程(3):在VPS上安装V2Ray并启动 其中以下五个信息是我们在后续v2客户端配置中需要用到的,请保存下来

  • port
  • protocol
  • id
  • level
  • alter Id

最后,在这里再给出相关资源连接: Xshell下载地址:Xshell-6.0.0125_wm(https://file.itlao5.com/file/Xshell-6.0.0125_wm.exe) 搬瓦工vps优惠码及购买地址(6.58%优惠): BWH3HYATVBJW     点击选择VPS    CN2线路

相关文章: 

  1. vps+v2_Ray教程(1):购买 VPS (以搬瓦工VPS为例,附优惠码)
  2. vps+v2_Ray教程(2):使用SSH登录VPS
  3. vps+v2_Ray教程(3):在VPS上安装v2并启动(3.4 二选一)
  4. vps+v2_Ray教程(3-2):一键安装v2_Ray(傻瓜脚本小白教程)(3.4 二选一)
  5. vps+v2_Ray教程(4):客服端安装及配置v2

个人博客: https://itlao6.com

源创不易,允许转载,来源勿删,多谢合作
vps+v2Ray教程(3):在VPS上安装V2Ray并启动
IT老五(it-lao5):关注公众号,一起源创,一起学习!
继续阅读
weinxin
我的微信公众号
微信扫一扫关注公众号,不定时更新
itlao6
  • 本文由 发表于 2020年 4月 30日 21:53:50
  • 转载请务必保留本文链接:https://itlao6.com/2050.html
评论  9  访客  6
    • 55855
      55855 0

      666

      • 123
        123 2

        1111

        • 123
          123 2

          11

          • Del-
            Del- 1

            [root@ablelyh ~]# yum -y install wget
            Loaded plugins: fastestmirror
            Setting up Install Process
            Loading mirror speeds from cached hostfile
            No package wget available.
            Error: Nothing to do
            什么问题哥

            • Del-
              Del- 1

              yum -y install wget
              ‘yum’ 不是内部或外部命令,也不是可运行的程序
              或批处理文件。

              Client Area – RAKsmart

              • 小飞
                小飞 0

                老五,我要你的联系方式

              匿名

              发表评论

              匿名网友

              :?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

              确定