Coder Social home page Coder Social logo

v2ray_ws-tls_bash_onekey's Introduction

V2Ray 基于 Nginx 的 vmess+ws+tls 一键安装脚本

  • V2Ray是一个优秀的开源网络代理工具,可以帮助你畅爽体验互联网,目前已经全平台支持Windows、Mac、Android、IOS、Linux等操作系统的使用。

本脚本目前支持 Centos7 + / Debian 8+ / Ubuntu 16.04+

注意事项

  • 推荐在纯净环境下使用本脚本,如果你是新手,请不要使用Centos系统。
  • 在尝试本脚本确实可用之前,请不要将本程序应用于生产环境中。
  • 该程序依赖 Nginx 实现相关功能,请使用 LNMP 或其他类似携带 Nginx 脚本安装过 Nginx 的用户特别留意,使用本脚本可能会导致无法预知的错误(未测试,若存在,后续版本可能会处理本问题)。
  • V2Ray 的部分功能依赖于系统时间,请确保您使用V2RAY程序的系统 UTC 时间误差在三分钟之内,时区无关。
  • 本 bash 依赖于 V2ray 官方安装脚本acme.sh 工作。
  • Centos 系统用户请预先在防火墙中放行程序相关端口(默认:80,443)

准备工作

  • 准备一个域名,并将A记录添加好。
  • V2ray官方说明,了解 TLS WebSocket 及 V2ray 相关信息
  • 安装好 git

安装方式

git clone https://github.com/wulabing/V2Ray_ws-tls_bash_onekey.git temp

cd temp

bash install.sh | tee v2log.txt

启动方式

启动 V2ray:systemctl start v2ray

启动 Nginx:systemctl start nginx

(其他的应该不用我多说了吧 嘿嘿嘿)

更新方式

执行: bash <(curl -L -s https://install.direct/go.sh)

( 来源参考 :V2ray官方说明

  • 如果为最新版本,会输出提示并停止安装。否则会自动更新
  • 未来会将相关内容集成到本脚本中并进行交互式操作更新

测试说明

  • 该测试为 V2.0 版本在 Vultr 测试机使用官方模板进行的测试
  • 理论上支持所有具备 Systemd 特性的开发版系统
NO Status Platform
1 PASS Centos 7
2 PASS Debian 8
3 PASS Debian 9
4 PASS Ubuntu 16.04
5 PASS Ubuntu 17.04

问题反馈

  • 请携带 v2log.txt 文件内容进行反馈

更新说明

2018-01-28

v2.1.1(stable)

  • 1.修复 缺乏 lsof 依赖导致的端口占用判断异常问题

2018-01-27

v2.1.1(stable)

  • 1.修复 部分机型因缺乏 crontab (计划任务)依赖导致的安装失败问题
  • 2.完善 端口占用 判断

2017-12-06

V2.1(stable)

  • 1.修复 Centos7 找不到 Nginx 安装包的问题
  • 2.完善 SElinux 配置过程提醒标识

V2.0(stable)

  • 1.增加 Centos7 系统支持
  • 2.增加 自定义端口 和 自定义alterID
  • 3.完善 安装所需依赖
  • 4.修复 Ubuntu 系列系统版本判断异常导致的安装中断问题
  • 5.修复 bug

V1.02(beta)

  • 1.增加 系统判定,目前打算仅支持带systemd的较新主流开发版系统
  • 2.本机 IP 获取方式重构

2017-12-05

V1.01(beta)

  • 1.完善 支持 Debian9
  • 2.修复 由于 Debian9 默认未安装 net-tools 导致的本机ip判定错误
  • 3.修复 bc 安装问题
  • 4.增加 ip 判定不一致时继续安装的选项(由于某些vps情况比较特殊,判定到内网IP或本身网卡信息,或公网ip与服务期内信息不一致等情况)

V1.0(beta)

  • 1.目前仅支持 Debian 8+ / Ubuntu 16.04+
  • 2.逐渐完善中

v2ray_ws-tls_bash_onekey's People

Contributors

wulabing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.