X-ui可视化面板搭搭教程

XRAY搭建教程

准备工作
1、VPS准备Debian 9+
2、域名解析到VPS的IP上

申请SSL证书

apt update -y
apt install -y curl
apt install -y socat
curl https://get.acme.sh | sh
~/.acme.sh/acme.sh --register-account -m xxx@xxx.xxx

#更真邮箱成功率更高

~/.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

安装X-ui面板

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

私钥路径:/root/private.key
公钥路径:/root/cert.crt