高速专线机场 老牌大机场

V2Ray基于Nginx的一键安装脚本,V2ray+Ws+TLs+Nginx、V2ray+H2+TLs+Nginx(H2/WS二合一选装脚本)

前言

其实一键安装脚本安装毫无技术而言。开源的脚本,不存在什么后门。那些说有后面的人就别安装了。(开源的,人家弄个后门,没有这样的。。。。。)

V2Ray基于Nginx的一键安装脚本,V2ray+Ws+TLs+Nginx、V2ray+H2+TLs+Nginx(H2/WS二合一选装脚本)

在此感谢 wulabing_v2ray

GitHub 项目地址:点击访问

YouTube视频观看地址:点击访问

V2Ray基于Nginx的一键安装脚本,V2ray+Ws+TLs+Nginx、V2ray+H2+TLs+Nginx(H2/WS二合一选装脚本)

2019-12-30更新如下

本次更新内容较多,并存在部分代码重构及合并,请留意,建议用户使用新版管理脚本时 先执行卸载后 重新安装对应版本

  • 新增 交互式菜单,重构为安装管理脚本,版本号初始化为1.0,诸多功能合并
  • 合并 h2 版合并至主版本并跟随更新,h2版(旧版)停止维护
  • 新增 变更UUID ALTERID PORT TLS 版本选项
  • 新增 V2ray 日志记录及查看
  • 新增 4合1 bbr锐速脚本引入,感谢 94ish.me
  • 新增 卸载选项
  • 新增 证书手动更新,原理与计划任务更新相同,证书有效期仅小于30天可更新,默认不启用强制更新

注意事项

推荐在纯净环境下使用本脚本,如果你是新手,请不要使用Centos系统。

在尝试本脚本确实可用之前,请不要将本程序应用于生产环境中。

该程序依赖 Nginx 实现相关功能,请使用 LNMP 或其他类似携带 Nginx 脚本安装过 Nginx 的用户特别留意,使用本脚本可能会导致无法预知的错误(未测试,若存在,后续版本可能会处理本问题)。

V2Ray 的部分功能依赖于系统时间,请确保您使用V2RAY程序的系统 UTC 时间误差在三分钟之内,时区无关。

本 bash 依赖于 V2ray 官方安装脚本 及 acme.sh 工作。

Centos 系统用户请预先在防火墙中放行程序相关端口(默认:80,443)

准备工作

准备好你的域名

申请地址:https://freenom.com (若你是申请不了免费的,那么请移步下面)

收费申请地址:https://www.namesilo.com   (随便申请一个年付 0.99/美元的域名,支付宝支付)

解析好你的域名(指向 VPS IP),波仔推荐你使用二级域名(XXX.XXX.XXX)

若不懂二级域名为何物,请移步视频区:点击观看

安装好 curl、wget

yum -y install wget    ##ContOS Yum安装wget
apt-get install wget   ##Debian Ubuntu安装 wget
apt-get update -y && apt-get install curl -y    ##Ubuntu/Debian 系统安装 Curl 方法
yum update -y && yum install curl -y            ##Centos 系统安装 Curl 方法

安装/更新方式(h2 和 ws 版本已合并)

Vmess+websocket+TLS+Nginx+Website

wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh" && chmod +x install.sh && bash install.sh

启动方式

systemctl start v2ray #启动 V2ray 
systemctl stop v2ray #停止 V2ray 
systemctl start nginx #启动 Nginx 
systemctl stop nginx #停止 Nginx 

相关目录

伪装的 Web 目录:/home/wwwroot/3DCEList
V2ray 服务端配置:/etc/v2ray/config.json
Nginx 目录: /etc/nginx
证书文件: /data/v2ray.key 和 /data/v2ray.crt
V2Ray搭建VPS各类安装脚本服务器

史上最简单的V2ray+Ws+Tls+Nginx配置方式,V2ray+Ws+Tls+Nginx一键安装脚本,开启最帅的“番茄”方式。V2RaysSSR.Com全网首发

2019-12-22 19:18:42

VPS各类安装脚本

全系统支持,Trojan一键安装脚本,自动续签SSL证书,自动配置伪装网站,支持centos7+/debian9+/ubuntu16+

2020-1-9 19:30:59

64 条回复 A文章作者 M管理员
  1. 呼伦贝尔

    你好 证书怎么续签呢

    • V2raySSR综合网

      新增 证书手动更新,原理与计划任务更新相同,证书有效期仅小于30天可更新,默认不启用强制更新

  2. coolpanda

    一直用的这个,很好用。。。
    其实我就是来做做任务

  3. elysegilles

    touch: cannot touch ‘/etc/nginx/conf/conf.d/v2ray.conf’: No such file or directory
    install.sh: line 522: /etc/nginx/conf/conf.d/v2ray.conf: No such file or directory
    sed: can’t read /etc/nginx/conf/conf.d/v2ray.conf: No such file or directory
    [错误] V2ray port 修改 失败

    大佬 这个怎么处理呢

  4. manuelacolley06

    vps上已经安装了Trojan 想再安装下 v2ray 443的端口可以修改吗?

  5. alexeddy41924

    为啥安装成功之后还是不能科学上网。ip和网站解析都没问题,用的搬瓦工的vps。也搭建成功了,使用小火箭输入配置后不能科学上网

  6. wpyallison

    The following packages have unmet dependencies:
    build-essential : Depends: libc6-dev but it is not going to be installed or
    libc-dev
    Depends: g++ (>= 4:4.9.1) but it is not going to be installed
    Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    [错误] 编译工具包 安装 失败

    报错这个怎么办啊,系统是Debian 9

  7. kirkallred

    安装报错

    not an option: -e
    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    unzip: cannot find zipfile directory in one of /tmp/v2ray/v2ray.zip or
    /tmp/v2ray/v2ray.zip.zip, and cannot find /tmp/v2ray/v2ray.zip.ZIP, period.
    Archive: /tmp/v2ray/v2ray.zip
    End-of-central-directory signature not found. Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive. In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
    unzip: cannot find zipfile directory in one of /tmp/v2ray/v2ray.zip or
    /tmp/v2ray/v2ray.zip.zip, and cannot find /tmp/v2ray/v2ray.zip.ZIP, period.
    Failed to copy V2Ray binary and resources.
    [错误] 安装 V2ray 失败

  8. dorrisstreeten

    用了V2raySSR综合网的一键v2ray和一键Trojan,端口冲突了,v2ray的 改了444,但nginx无法更改,应该是这个原因导致网页显示500.怎么让两个兼容呢?谢谢V2raySSR综合网.bbr要装两遍吗?应该不要的吧

  9. 阿良

    请教下我用这个多用户脚本搭建好了 source <(curl -sL https://multi.netlify.com/v2ray.sh) –zh

    怎么配合nginx 实现伪装网站,希望V2raySSR综合网能够研究一下。

  10. marcelo34s

    请教一下,一件脚本安装完成以后,查看v2ray状态,ngnix 无法启动,伪装网站打不开。