### 首先申请SSL证书 Acme 脚本申请证书 - Debian/Ubuntu申请命令: ```abap apt update -y ``` ```abap apt install -y curl ``` ```abap apt install -y socat ``` - CentOS 申请命令: ```abap yum update -y ``` ```abap yum install -y curl ``` ```abap yum install -y socat ``` 安装 Acme 脚本 ```abap curl https://get.acme.sh | sh ``` ```abap ~/.acme.sh/acme.sh --register-account -m gty93@live.com ``` 80端口申请证书: ```abap ~/.acme.sh/acme.sh --issue -d xxx.930812.xyz --standalone ``` - 这一步如果一直重复: Order status is processing, lets sleep and retry. Retry after: 15 可以尝试断开vps,重新连接,输入下面代码,切换到 Let's Encrypt申请: ```abap acme.sh --set-default-ca --server letsencrypt ``` 在重新执行: ```abap ~/.acme.sh/acme.sh --issue -d xxx.930812.xyz --standalone ``` 安装证书到指定文件夹 ```abap ~/.acme.sh/acme.sh --installcert -d xxx.930812.xyz --key-file /root/private.key --fullchain-file /root/cert.crt ``` ### 安装BBR加速 ```abap echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf ``` ```abap echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf ``` ```abap sysctl -p ``` ```abap lsmod | grep bbr ``` ### 安装X-ui面板 ```abap bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) ``` 公钥路径: ```abap /root/cert.crt ``` 私钥路径: ```abap /root/private.key ``` Loading... ### 首先申请SSL证书 Acme 脚本申请证书 - Debian/Ubuntu申请命令: ```abap apt update -y ``` ```abap apt install -y curl ``` ```abap apt install -y socat ``` - CentOS 申请命令: ```abap yum update -y ``` ```abap yum install -y curl ``` ```abap yum install -y socat ``` 安装 Acme 脚本 ```abap curl https://get.acme.sh | sh ``` ```abap ~/.acme.sh/acme.sh --register-account -m gty93@live.com ``` 80端口申请证书: ```abap ~/.acme.sh/acme.sh --issue -d xxx.930812.xyz --standalone ``` - 这一步如果一直重复: Order status is processing, lets sleep and retry. Retry after: 15 可以尝试断开vps,重新连接,输入下面代码,切换到 Let's Encrypt申请: ```abap acme.sh --set-default-ca --server letsencrypt ``` 在重新执行: ```abap ~/.acme.sh/acme.sh --issue -d xxx.930812.xyz --standalone ``` 安装证书到指定文件夹 ```abap ~/.acme.sh/acme.sh --installcert -d xxx.930812.xyz --key-file /root/private.key --fullchain-file /root/cert.crt ``` ### 安装BBR加速 ```abap echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf ``` ```abap echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf ``` ```abap sysctl -p ``` ```abap lsmod | grep bbr ``` ### 安装X-ui面板 ```abap bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) ``` 公钥路径: ```abap /root/cert.crt ``` 私钥路径: ```abap /root/private.key ``` ◈ 最后修改:2023 年 05 月 12 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏