x0r2d2 / one_click_script

install v2ray and trojan (trojan-go) script 一键安装 trojan 和 v2ray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Easy install v2ray and trojan (trojan-go) script

Trojan (支持 trojan-go版本) 和 V2ray 一键安装脚本

==================================== 系统:centos7+/debian9+/ubuntu16.04+

脚本感谢 秋水逸冰、Atrandys、V2ray官方等 Youtube:波仔分享

支持 trojan 与 v2ray 共存

支持 trojan 和 trojan-go 安装

手动配置trojan-go 可以支持CDN

默认会创建10个用户账号, trojan 还能创建指定的密码, 方便用户使用.

====================================

脚本安装命令

curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh

wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh

功能说明

使用说明 Usage

  1. 该步骤可省略. 如果是使用google cloud 谷歌云服务器,默认无法使用root账号登陆, 可以选择22 开启root用户登录. 建议使用root用户运行该脚本. 安装bbr plus 需要root权限, 默认认为使用root执行, 非root用户请手动添加sudo执行 sudo ./tcp.sh sudo ./trojan_v2ray_install.sh 脚本. (注意 证书申请也需要用root用户而不建议用sudo acme.sh文档说明 ).

  2. 安装 BBR plus. 运行脚本 ./trojan_v2ray_install.sh 选择1 然后选择2 安装 BBRplus版内核, 注意安装过程中会弹出大框的英文提示(下面有示例图)"安装linux内核有风险是否终止", 要选择" NO" 不终止. 安装完毕会重启VPS

  3. 使用BBRplus版加速. 重新登录VPS后, 重新运行脚本 ./trojan_v2ray_install.sh 选择1 然后 选择7 使用BBRplus版加速.

  4. 该步骤可省略. 选择21, 安装 oh-my-zsh. 这样以后登录有命令提示, 方便新手操作. 安装完成后请退出VPS, 命令为exit. 重新登录VPS后继续下面操作.

  5. 安装 trojan 或 v2ray. 根据提示 重新运行脚本 ./trojan_v2ray_install.sh 选2 安装trojan, 或选6 安装trojan-go, 或选11 安装v2ray, 或选14 同时安装trojan和v2ray.

  6. 第一步安装 BBR plus 时出现的提示 "是否终止删除内核" 请选择 "NO". 就是要卸载掉目前的内核. 注意 安装BBR plus 注意 安装BBR plus 注意 安装BBR plus

注意事项与常见问题 FAQ

  1. 免费域名可以使用 freenom. 注册freenom时需要使用美国IP,否则无法通过注册邮件验证. 请自行搜索教程.
  2. 使用脚本安装时请先关闭CDN, cloudflare.com 中DNS设置页面, 二级域名设置为DNS only 为关闭CDN. 安装v2ray或trojan-go完毕后 可以开启CDN 设置为Proxied 即可. trojan目前不支持CDN, trojan-go 默认安装设置为不支持CDN,可以在安装过程中选择支持CDN.

注意 cloudflare CDN

About

install v2ray and trojan (trojan-go) script 一键安装 trojan 和 v2ray

License:MIT License


Languages

Language:Shell 100.0%