Tech、Food & Life

  • 首页
  • 软件下载
    • 电脑和软件
    • Mac软件
    • windows软件
  • Telegram电报
  • 网站资源推荐
  • 海外流媒体
    • netflix
    • Youtube
    • Disney+
    • HBO
  • 生活日常
    • COVID19疫情相关
    • 德国驾照和车
    • 电脑和软件
    • 花花草草
  • 烘焙
  • 关于我
  • 中EN
Tech Food & Life
爱技术,爱美食,爱生活
  1. Home
  2. English Articles
  3. Article

V2Ray One-Click Installation Script for Secure Internet Access

2026年6月6日 1点热度 0人点赞 0条评论
Language: 🇨🇳 中文版 🇬🇧 English

This V2Ray one-click script supports IPv6-only servers, but it's not recommended to use an IPv6-only VPS for bypassing internet restrictions.

After completing the prerequisites, run the following command to install the V2Ray all-in-one script (copy and paste recommended):

bash <(curl -sL https://sunqi.org/v2ray.sh)

After pressing Enter, you'll see the following menu:
1. Install V2ray-VMESS
2. Install V2ray-VMESS+mKCP
3. Install V2ray-VMESS+TCP+TLS
4. Install V2ray-VMESS+WS+TLS (Recommended)
5. Install V2ray-VLESS+mKCP
6. Install V2ray-VLESS+TCP+TLS
7. Install V2ray-VLESS+WS+TLS (CDN compatible)
8. Install V2ray-VLESS+TCP+XTLS (Recommended)
9. Install trojan (Recommended)
10. Install trojan+XTLS (Recommended)
————-
11. Update V2ray
12. Uninstall V2ray
————-
13. Start V2ray
14. Restart V2ray
15. Stop V2ray
————-
16. View V2ray configuration
17. View V2ray logs
————-
0. Exit

If the menu doesn't appear after pressing Enter:

For CentOS systems, run:

yum install -y curl

For Ubuntu/Debian systems, run:

sudo apt install -y curl

Then run the installation command again.

V2Ray all-in-one one-click installation script

Now choose according to your needs. For this tutorial, we'll select option "8" to install "V2ray-VLESS+TCP+XTLS".

After pressing Enter, you might see:

Before running the V2ray one-click script, please confirm the following:
1. A fake domain name
2. The fake domain's DNS resolves to the current server IP (192.168.0.1)
3. If you have v2ray.pem and v2ray.key certificate files in /root, condition 2 can be ignored

Press y to confirm, any other key to exit:

Once you've confirmed the domain resolution or have the certificate files (trojan-go.pem and trojan-go.key in /root), press "y" to proceed with installation.

V2Ray all-in-one one-click installation script

The installation process will then begin.

  1. During installation, you'll be prompted to enter some information (enter as needed, or press Enter to use defaults).
  2. Please be patient during the script installation. If the screen freezes, do nothing as long as the SSH connection remains active.
  3. If the SSH connection drops, simply re-run the installation command to continue.

Once the script finishes, you'll see the following information screen:

V2Ray all-in-one one-click installation script

V2Ray is now installed. The SSH window will display the configuration details:

  • Protocol
  • IP (address)
  • Port
  • ID (UUID)
  • Flow control
  • Encryption
  • Transport protocol (network)
  • Fake domain (host)
  • TLS

Your V2Ray all-in-one one-click installation is now complete.

After installation, the VPS may or may not reboot automatically — this is normal.

If you installed the VLESS or VMESS+WS+TLS combination, open your browser and enter your fake domain. If the fake website loads correctly, the server is configured properly.

V2Ray One-Click Script Notes

  1. If you plan to use a CDN like CloudFlare for proxying, you must install the WS version of the V2Ray script.
  2. This V2Ray one-click script includes BBR acceleration by default — no need to install it separately.
  3. If the script doesn't include a fake website you like, you can set up your own WordPress blog. See: V2ray Fake Website Tutorial.
  4. For TLS-based installations, the script automatically obtains domain certificates, stored in the same folder as the V2Ray config file (/etc/v2ray). Certificates auto-renew. If your client suddenly stops working, check if the fake website loads. If the certificate has expired, re-run the script to reconfigure.
  5. Avoid using excessive traffic immediately after setting up V2Ray, as this may lead to VPS throttling, port blocking, or even IP blacklisting.
标签: 暂无
最后更新:2026年6月6日

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

Comments

Latest Popular Random
Latest Popular Random
德国求职信(Anschreiben)怎么写:格式规范与正文结构详解 德国 Bio 有机产品值不值得买:哪些食物优先选有机,在哪里买最省 德国学生餐厅(Mensa)完全指南:价格、菜单、付款和全国特色 穷游瑞士:从德国出发 5 天 500 欧的可行路线 Notion + Obsidian 管理博士/硕士科研笔记:知识库搭建方案 在德国复刻中式早餐:豆浆、油条和葱油饼在家怎么做
在德国如何办理手机卡和家庭网络:新手实用指南德国留学如何吃得便宜又健康:学生食堂、廉价超市与菜市场全攻略德国留学生BAfoG助学金:谁可以申请?如何申请?德国学生证(Immatrikulationsbescheinigung)到底能干什么?省钱攻略全在这里ggplot2 科研配色方案:5 套可直接用的代码单细胞测序入门:Seurat 完整流程(raw counts → UMAP)全注释
AI 辅助写论文:哪些用法合规,哪些是学术不端(2026 视角) 穷游瑞士:从德国出发 5 天 500 欧的可行路线 在德国看牙医:医保报销哪些,哪些要自费 海投几百封没有面试回音:德国求职如何自救 中国驾照换德国驾照:完整步骤和费用 青岛-法兰克福航线将于2021年10月恢复!
Tags
Netflix mac windows 下载 4k 在线 奈飞 破解

COPYRIGHT © 2020-2025 SUNQI.ORG ALL RIGHTS RESERVED. 本站部分资源来源于网络,如有侵权请联系删除,谢谢。

Theme Kratos Made By Seaton Jiang