Code Monkey home page Code Monkey logo

xray-script's Introduction

Xray-TLS+Web搭建/管理脚本

目录

1. 脚本特性

2. 注意事项

3. 安装时长说明

4. 脚本使用说明

5. 运行截图

6. 注

脚本特性

1.支持 (Xray-TCP+XTLS) + (Xray-WebSocket+TLS) + Web

2.集成 多版本bbr/锐速 安装选项

3.支持多种系统 (Ubuntu CentOS Debian deepin fedora ...)

4.支持多种指令集 (x86 x86_64 arm64 ...)

5.支持ipv6only服务器 (需自行设置dns64)

6.集成删除阿里云盾和腾讯云盾功能 (仅对阿里云和腾讯云服务器有效)

7.使用Nginx作为网站服务

8.使用Xray作为前置分流器

9.使用acme.sh自动申请域名证书

10.自动更新域名证书

注意事项

1.此脚本需要一个解析到服务器的域名 (支持cdn)

2.有些服务器443端口被阻断,使用这个脚本搭建的无法连接

3.此脚本安装时间较长,见 安装时长说明

4.建议在纯净的系统上使用此脚本 (VPS控制台-重置系统)

安装时长说明

此脚本的安装时间比较长,根据VPS的配置以及安装时的选项不同,安装时长在 5-60分钟 不等。 对于一台单核1G内存的VPS来说,不选择更新系统,安装时长在20分钟左右。

所以本脚本不适合反复重置系统安装,这会消耗您的大量时间。 本脚本适合安装一次后长期使用,如果需要更换配置和域名等,在管理界面都有相应的选项。

为什么脚本安装时间那么长?

之所以时间相比别的脚本长,有三个原因:

1.集成了安装bbr的功能
2.集成更新系统及软件包的功能
3.(主要原因) 脚本的Nginx(即Web服务器)是采用源码编译的形式,其它脚本通常直接获取二进制程序

其中安装bbr和更新系统及软件包可以选择跳过,在一定程度上缩短时间。 (并不推荐您这么做)

Nginx之所以采用编译的形式,主要考虑到的主要原因为:

1.便于管理
2.便于适配多种系统

编译相比直接安装二进制文件的优点有:

1.运行效率高 (编译时采用了-O3优化)
2.软件版本新 (可以对比本脚本与其他脚本Nginx的版本)

缺点就是编译耗时长

如果有快速安装的需求,推荐在 Xray-core#Installation 中选择其他脚本

脚本使用说明

1. 安装wget

Debian基系统(包括Ubuntu、Debian、deepin):

[[ "$(type -P wget)" ]] || apt -y install wget || (apt update && apt -y install wget)

Red Hat基系统(包括CentOS、fedora):

[[ "$(type -P wget)" ]] || dnf -y install wget || yum -y install wget

2. 获取/更新脚本

wget -O Xray-TLS+Web-setup.sh --no-check-certificate https://github.com/kirin10000/Xray-script/raw/main/Xray-TLS+Web-setup.sh

3. 增加脚本可执行权限

chmod +x Xray-TLS+Web-setup.sh

4. 执行脚本

./Xray-TLS+Web-setup.sh

5. 根据脚本提示完成安装

运行截图

1.本文链接(官网):https://github.com/kirin10000/Xray-script

2.参考教程:https://www.v2fly.org/config/overview.html https://guide.v2fly.org/

3.域名证书申请:https://github.com/acmesh-official/acme.sh

4.bbr脚本来自:https://github.com/teddysun/across/blob/master/bbr.sh

5.bbr2脚本来自:https://github.com/yeyingorg/bbr2.sh (Ubuntu Debian) https://github.com/jackjieYYY/bbr2 (CentOS)

6.bbrplus脚本来自:https://github.com/chiakge/Linux-NetSpeed

此脚本仅供交流学习使用,请勿使用此脚本行违法之事。网络非法外之地,行非法之事,必将接受法律制裁!!

xray-script's People

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.