Giter Site home page Giter Site logo

xray's Introduction

自己搭建vpn && xray && 科学上网 && VLESS协议 && XTLS

此教程仅限学习交流,禁止发布侮辱、造谣、损害国家利益等相关内容。

脚本摘录大神@hijkpw一键搭建脚本 非常感谢为自由上网做出的贡献

Xray一键脚本

前期准备:

  1. 有基本linux技巧
  2. 准备一台SSH能连接到境外的VPS,可参考https://my.vultr.com/
  3. 需要有域名(可参考域名服务商https://www.namesilo.com/)dns解析到当前境外服务器的ip
  4. 需要ssl证书从阿里获取免费证书

配置xray服务端

  1. Xray一键脚本 放到服务器的/root 目录下
  2. 把ssl证书(从阿里获取免费证书)放到服务器的/root 目录下
  3. 执行脚本,会看到下面的界面
[root@vultr ~]# ./xray.sh 
#############################################################
#                     Xray一键安装脚本                      #
# 作者: 网络跳越(hijk)                                      #
# 网址: https://hijk.art                                    #
# 论坛: https://hijk.club                                   #
# TG群: https://t.me/hijkclub                               #
# Youtube频道: https://youtube.com/channel/UCYTB--VsObzepVJtc9yvUxQ #
#############################################################
  1.   安装Xray-VMESS
  2.   安装Xray-VMESS+mKCP
  3.   安装Xray-VMESS+TCP+TLS
  4.   安装Xray-VMESS+WS+TLS(推荐)
  5.   安装Xray-VLESS+mKCP
  6.   安装Xray-VLESS+TCP+TLS
  7.   安装Xray-VLESS+WS+TLS(可过cdn)
  8.   安装Xray-VLESS+TCP+XTLS(推荐)
  9.   安装trojan(推荐)
  10.  安装trojan+XTLS(推荐)
 -------------
  11.  更新Xray
  12.  卸载Xray
 -------------
  13.  启动Xray
  14.  重启Xray
  15.  停止Xray
 -------------
  16.  查看Xray配置
  17.  查看Xray日志
 -------------
  0.   退出
 当前状态:未安装

  请选择操作[0-17]:  
  
  1. 输入 8
  2. 看提示操作,一般都是默认就好。等待安装完成后会重启服务器
  3. 配置windows xray客户端:V2rayN 配置教程以及配置VLESS协议

    V2rayN:3.28版本起支持xray,只需要下载Xray-core,将解压的文件放到V2rayN-Core文件夹下即可。需要注意的是V2rayN 4.0版本移除了PAC,改用路由规则.

  4. 其他操作系统的客户端请移步这里

相关文章

写在最后

如果你嫌弃麻烦或者效果不好的话,试一下这个邀请链接传送门

xray's People

Contributors

linabellbiu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.