跳至主要内容

V2Ray 基于 Nginx 的 vmess+ws+tls 一键安装脚本 以及相关软件

安装环境
目前支持Debian 9+ / Ubuntu 18.04+ / Centos7+ 

一、新建VPS并做好cloudflare解析(略)sldgrbk.xyz

二、常用软件包

centos8常用软件包
# yum -y update && yum -y install unzip zip wget nano sudo curl firewalld redhat-lsb epel-release socat  gcc git


Debian10常用软件包
# apt-get -y update && apt-get -y install unzip zip wget curl  nano sudo ufw socat ntp ntpdate gcc git xz-utils


安装Xray 基于 Nginx 的 VLESS + XTLS 一键安装脚本

# wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/Xray_onekey/main/install.sh" && chmod +x install.sh && bash install.sh
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
安装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

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

其它命令

三、启动方式
启动 V2ray:systemctl start v2ray

停止 V2ray:systemctl stop v2ray

状态查询 V2ray:systemctl status v2ray

重启 V2ray 服务:systemctl restart v2ray

启动 Nginx:systemctl start nginx

停止 Nginx:systemctl stop nginx

状态查询 Nginx:systemctl status nginx

重启 Nginx 服务:systemctl restart nginx

四、V2ray相关目录
Web 目录:/home/wwwroot/3DCEList

V2ray 服务端配置:/etc/v2ray/config.json

V2ray 客户端配置: ~/v2ray_info.txt

Nginx 目录: /etc/nginx

证书文件: /data/v2ray.key 和 /data/v2ray.crt


五、Xray相关目录
Web 目录:/www/xray_web

Xray 服务端配置:/usr/local/etc/xray/config.json

Nginx 目录: /etc/nginx

证书文件: /ssl/xray.key(私钥)和 /ssl/xray.crt(证书公钥)

六、V2Ray工作原理图

六、相关软件

Android 手机客户端:点击下载

Windows 电脑 PC版:点击下载   


转载自: https://github.com/wulabing/V2Ray_ws-tls_bash_onekey
cloudflare地址:https://dash.cloudflare.com/

评论