# X-UI:xray一键脚本 **Published by:** [Gerogehan](https://paragraph.com/@gerogehan/) **Published on:** 2022-05-30 **URL:** https://paragraph.com/@gerogehan/x-ui-xray ## Content 更新及安装组件 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 命令 安装 Acme 脚本 curl https://get.acme.sh | sh 80 端口空闲的证书申请方式 自行更换代码中的域名、邮箱为你解析的域名及邮箱 ~/.acme.sh/acme.sh --register-account -m aaa@aaa.com ~/.acme.sh/acme.sh --issue -d killy7.com --standalone 安装证书到指定文件夹 自行更换代码中的域名为你解析的域名 ~/.acme.sh/acme.sh --installcert -d killy7.com --key-file /root/private.key --fullchain-file /root/cert.crt 安装 & 升级 X-ui 面板 安装及升级的一键代码 bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) V2-ui - X-ui数据迁移 x-ui v2-ui 来源: https://killy7.com/1026.html ## Publication Information - [Gerogehan](https://paragraph.com/@gerogehan/): Publication homepage - [All Posts](https://paragraph.com/@gerogehan/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@gerogehan): Subscribe to updates