Code Monkey home page Code Monkey logo

v2ray's Introduction

v2ray

build language author license

一个 websocket+tls+nginx+cloudflare 的 v2ray 模板(A template with websocket+tls+nginx+cloudflare of v2ray)

其中:

  • nginx:v1.13.6,编译参数自行查看
  • v2ray:v3.10-linux-64

服务端

获取文件:

download(){
	cd /home
	wget https://raw.githubusercontent.com/nanqinlang/v2ray/master/nginx.tar.gz && tar -zxf nginx.tar.gz && rm nginx.tar.gz
	wget https://raw.githubusercontent.com/nanqinlang/v2ray/master/v2ray.tar.gz && tar -zxf v2ray.tar.gz && rm v2ray.tar.gz
	chmod -R +x /home/nginx  &&  chmod -R +x /home/v2ray
}

然后,你要修改 /home/nginx/conf/nginx-v2ray.conf/home/v2ray/config_server.json 这两个配置文件的中文部分的字符(按照注释修改)

配置文件改好后,启动服务端:

start(){
	# 启动 nginx
	/home/nginx/sbin/nginx

	# 启动 v2ray
	cd /home/v2ray && nohup ./v2ray -config config_server.json &
}

运行 ps -A,看到进程里有 nginx 和 v2ray 就对了。

然后 cloudflare cdn websocket 你自己去加。

客户端

反正客户端的配置文件就是 config_client.json,记得也要修改其中的中文部分

这里介绍下 win 客户端的步骤:

  1. https://github.com/v2ray/v2ray-core/releases 下载 win 平台的压缩包,解压,删掉 config.json
  2. 修改本项目的 config_client.json 后,重命名为 config.json 放到 v2ray 目录下
  3. 双击 v2ray.exe,弹出窗口 "[Warning] Core: V2Ray started"

v2ray's People

Contributors

newbugger avatar

Watchers

 avatar  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.