2022年用阿里云轻量应用服务器搭建梯子科学上网最新教程。

准备工作

  • 一台服务器(非大陆)
  • 一个域名

相关网站

相关工具FinalShell

脚本命令

  • ContOS 安装 wget:
    1
    yum -y install wget
  • ContOS 安装 curl:
    1
    yum -y install curl
  • 查看防火墙状态:
    1
    firewall-cmd --state
  • 停止防火墙:
    1
    systemctl stop firewalld.service
  • 禁止防火墙开机自启:
    1
    systemctl disable firewalld.service
  • 安装x-ui面板:
    1
    bash <(curl -Ls https://raw.githubusercontent.com/sprov065/x-ui/master/install.sh)
  • 安装bbr加速:
    1
    wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh