Hysteria2一键脚本搭建

最新一键安装到服务器

curl -fsSL https://raw.githubusercontent.com/sindricn/s-hy2/main/quick-install.sh | sudo bash

运行脚本

sudo s-hy2

项目地址:https://github.com/sindricn/s-hy2

更新组件

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

一键安装协议合集,菜单命令:sb

bash <(wget -qO- -o- https://github.com/233boy/sing-box/raw/main/install.sh)

首先,确保您的服务器系统是最新的,并安装 curl 和 sudo:

apt update -y && apt install curl sudo -y

  1. 开启云服务器所有端口
    为了确保 Hysteria 2 能够正常工作,您需要开放所有 TCP 和 UDP 端口:

sudo ufw allow 1:65535/tcp
sudo ufw allow 1:65535/udp
sudo ufw enable

使用以下命令下载并运行 Hysteria 2 安装脚本:

wget -N –no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh

开机自启动 Hysteria 2
systemctl enable hysteria-server.service

reality一键安装
bash <(curl -Lso- https://raw.githubusercontent.com/yirenchengfeng1/linux/main/reality_xray.sh)

debian
3X-UI
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)

alpine
3X-UI
bash <(curl -Ls https://raw.githubusercontent.com/StarVM-OpenSource/3x-ui-Apline/refs/heads/main/install.sh)

dd德班系统

bash <(wget –no-check-certificate -qO- ‘https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh’) -d 11 -v 64 -p 123456 -port 22

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh && bash reinstall.sh debian 13 –ssh-port 22456 –password NVqfLm20wYo916jX && reboot

更新组件

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

基础工具
apt-get install unzip
apt install -y curl wget vim git ufw unzip bash

BBR

wget -N –no-check-certificate “https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh” && chmod +x tcp.sh && ./tcp.sh

老王一键安装脚本 (Sing-Box)

apt update
bash <(curl -Ls https://raw.githubusercontent.com/byjoey/testsing-box/main/sing-box.sh)

说明: 遇到延迟高、速度不理想等问题,请按顺序执行以下命令。
注意: 执行最后一条 reboot 命令后,服务器将重启,SSH 连接会断开,请稍后重新连接。

sudo systemctl disable –now systemd-resolved && sudo rm -f /etc/resolv.conf && sudo bash -c ‘echo -e “nameserver 1.1.1.1\nnameserver 1.0.0.1” > /etc/resolv.conf’ && sudo chattr +i /etc/resolv.conf

reboot

科技lion工具:
bash <(curl -sL kejilion.sh)

科技lion脚本

curl -sS -O https://raw.githubusercontent.com/kejilion/sh/main/kejilion.sh && chmod +x kejilion.sh && ./kejilion.sh