1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
1.关闭vps系统防火墙并在防火墙规则中放行所需要的端口,拿甲骨文云举例 2.所需命令:管理员权限: sudo -i Ubuntu系统下: 开放所有端口 3.安装更新运行环境 Debian/Ubuntu系统执行以下命令: apt update -y && apt install -y curl && apt install -y socat CentOS系统执行以下命令: yum update -y && yum update -y && yum install -y socat 4.运行Acme脚本 curl https://get.acme.sh | sh 必须保证80端口空闲/没有被占用 5.申请证书及密钥 先去Zerossl注册一个自己的账号,记住注册邮箱 PS:修改代码中注释的域名,改为你自己的域名 ~/.acme.sh/acme.sh --register-account -m xfndjatwvfp@gmail.com ~/.acme.sh/acme.sh --issue -d lvnn.cn --standalone 下载证书及密钥 ~/.acme.sh/acme.sh --installcert -d lvnn.cn --key-file /root/private.key --fullchain-file /root/cert.crt 完成后的证书路径 /root/cert.crt 公钥 /root/private.key 密钥 6.安装&升级x-ui面板一键脚本 bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) 7.BBR PLUS 四合一脚本 wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh |
评论前必须登录!
立即登录 注册