自用
支持的操作系统 (CentOS 7+、Ubuntu 16+、Debian 8+)
1、root 登入
sudo -i
2、开启防火墙
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
apt-get purge netfilter-persistent
reboot #重启
3、申请 SSL 证书
apt update -y # Debian/Ubuntu 命令
apt install -y curl # Debian/Ubuntu 命令
apt install -y socat # Debian/Ubuntu 命令
yum update -y #CentOS 命令
yum install -y curl #CentOS 命令
yum install -y socat #CentOS 命令
curl https://get.acme.sh | sh
#使用真实邮箱成功率上升
~/.acme.sh/acme.sh --register-account -m xxx@xxx.com
#更换你的解析域名
~/.acme.sh/acme.sh --issue -d xxxx.xxxx.xxx --standalone
#申请及下载证书
~/.acme.sh/acme.sh --installcert -d xxxx.xxxx.xxx --key-file /root/private.key --fullchain-file /root/cert.crt
更换你的解析域名,此步完成后会在 VPS root 目录下看到
证书文件路径
/root/cert.crt
密钥文件路径文件
/root/private.key
4、安装 X-ui 面板
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
配置完成后首先使用ip+端口进行登录
登录后面板设置公钥和验证文件路径,保存并重启面板
重启后使用域名+端口即可
5、安装 BBR 加速
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh