xiaqijian/xiaqijian.github.io

v2ray一键

Opened this issue · 5 comments

脚本

bash <(curl -L -s https://install.direct/go.sh)

此脚本会自动安装以下文件:

/usr/bin/v2ray/v2ray:V2Ray 程序;
/usr/bin/v2ray/v2ctl:V2Ray 工具;
/etc/v2ray/config.json:配置文件;
/usr/bin/v2ray/geoip.dat:IP 数据文件
/usr/bin/v2ray/geosite.dat:域名数据文件

此脚本会配置自动运行脚本。自动运行脚本会在系统重启之后,自动运行 V2Ray。目前自动运行脚本只支持带有 Systemd 的系统,以及 Debian / Ubuntu 全系列。

运行脚本位于系统的以下位置:

/etc/systemd/system/v2ray.service: Systemd
/etc/init.d/v2ray: SysV

脚本运行完成后,你需要:

编辑 /etc/v2ray/config.json 文件来配置你需要的代理方式;
运行 service v2ray start 来启动 V2Ray 进程;
之后可以使用 service v2ray start|stop|status|reload|restart|force-reload 控制 V2Ray 的运行。

第三方一键脚本

要求:Ubuntu 16+ / Debian 8+ / CentOS 7+ 系统
推荐使用 Debian 9 系统,脚本会自动启用 BBR 优化。

备注:不推荐使用 Debian 8 系统,因为 Caddy 申请证书可能会出现一些莫名其妙的问题

我们推荐使用 搬瓦工VPS,稳定,快速,针对**线路专门优化,完全无须担心跑路,服务好,30天退款保证。
在这里可以找到 搬瓦工 VPS 套餐大全 ,优惠码在这里: 搬瓦工 VPS 优惠码

使用 root 用户输入下面命令安装或卸载

bash <(curl -s -L https://git.io/v2ray.sh)

来源:https://233v2.com/post/1/

多用户管理脚本

wget -O /usr/bin/sprov-ui -N --no-check-certificate https://download.o2oyc.com/seedc/sprov-ui/blob/sprov-ui.sh && chmod +x /usr/bin/sprov-ui && sprov-ui

来源:https://github.com/sprov065/sprov-ui

bash <(curl -sL https://cdn.jsdelivr.net/gh/Misaka-blog/Xray-script@master/xray.sh)

按回车键,将出现如下操作菜单。如果菜单没出现,CentOS系统请输入 yum install -y curl,Ubuntu/Debian系统请输入 sudo apt install -y curl,然后再次运行上面的命令:

bash <(curl -sL https://raw.githubusercontent.com/daveleung/hijkpw-scripts-mod/main/v2ray_mod1.sh)

准备安装

更新服务器系统及脚本所依赖的安装包,参考如下命令更新服务器、安装 wget 和 curl 包。

CentOS

yum update -y && yum install wget -y && yum install curl -y

Debian / Ubuntu

apt-get update -y && apt-get install wget -y && apt-get install curl -y

Vmess+WebSocket+TLS+Nginx+Web 推荐安装

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

VLESS+WebSocket+TLS+Nginx+Web


wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/dev/install.sh" && chmod +x install.sh && bash install.sh

注意事项

每周日的凌晨3点,Nginx 会自动重启以配合证书的签发定时任务进行,在此期间,节点无法正常连接,预计持续时间为若干秒至两分钟。

管理命令

  • 启动 V2ray:systemctl start v2ray
  • 停止 V2ray:systemctl stop v2ray
  • 启动 Nginx:systemctl start nginx
  • 停止 Nginx:systemctl stop nginx

相关目录

  • Web 目录:/home/wwwroot/3DCEList
  • V2ray 服务端配置:/etc/v2ray/config.json
  • V2ray 客户端配置: ~/v2ray_info.inf
  • Nginx 目录: /etc/nginx

证书文件: /data/v2ray.key 和 /data/v2ray.crt 请注意证书权限设置

来源https://www.linuxv2ray.com/oneclick/wulabing-v2ray-one-click-script/