X-ui:支持多协议多用户的 xray 面板

v2-ui已经停止维护,目前建议新手使用x-ui部署服务器。X-ui项目链接:https://github.com/vaxilu/x-ui

X-ui:支持多协议多用户的 xray 面板

功能介绍

  • 系统状态监控
  • 支持多用户多协议,网页可视化操作
  • 支持的协议:vmess、vless、trojan、shadowsocks、dokodemo-door、socks、http
  • 支持配置更多传输配置
  • 流量统计,限制流量,限制到期时间
  • 可自定义 xray 配置模板
  • 支持 https 访问面板(自备域名 + ssl 证书)
  • 更多高级配置项,详见面板

安装&升级

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

手动安装&升级

  1. 首先从 https://github.com/vaxilu/x-ui/releases 下载最新的压缩包,一般选择amd64架构
  2. 然后将这个压缩包上传到服务器的/root/目录下,并使用root用户登录服务器

如果你的服务器 cpu 架构不是amd64,自行将命令中的amd64替换为其他架构

cd /root/
rm x-ui/ /usr/local/x-ui/ /usr/bin/x-ui -rf
tar zxvf x-ui-linux-amd64.tar.gz
chmod +x x-ui/x-ui x-ui/bin/xray-linux-* x-ui/x-ui.sh
cp x-ui/x-ui.sh /usr/bin/x-ui
cp -f x-ui/x-ui.service /etc/systemd/system/
mv x-ui/ /usr/local/
systemctl daemon-reload
systemctl enable x-ui
systemctl restart x-ui

使用docker安装

此 docker 教程与 docker 镜像由Chasing66提供

  1. 安装docker
curl -fsSL https://get.docker.com | sh
  1. 安装x-ui
mkdir x-ui && cd x-ui
docker run -itd --network=host \
    -v $PWD/db/:/etc/x-ui/ \
    -v $PWD/cert/:/root/cert/ \
    --name x-ui --restart=unless-stopped \
    enwaiax/x-ui:latest

Build 自己的镜像

docker build -t x-ui .

建议系统

  • CentOS 7+
  • Ubuntu 16+
  • Debian 8+

常见问题

从 v2-ui 迁移

首先在安装了 v2-ui 的服务器上安装最新版 x-ui,然后使用以下命令进行迁移,将迁移本机 v2-ui 的所有 inbound 账号数据至 x-ui,面板设置和用户名密码不会迁移

迁移成功后请关闭 v2-ui并且重启 x-ui,否则 v2-ui 的 inbound 会与 x-ui 的 inbound 会产生端口冲突

x-ui v2-ui

《X-ui:支持多协议多用户的 xray 面板》上有39条评论

  1. 大大, 我手机用的V2rayNG客户端,但是无法连接,电脑的v2rayN客户端可以连上,这是怎么回事?网站入站参数基本上默认的。

      1. 大大,我用过网站和电脑app提供的二维码和代码都不行。是哪里设置错了呢,用大大之前发的v2一键脚本是没问题的。

  2. 大佬,请问搭建出来端口经常被墙如何破解?换端口又能用了,基本一两天封一次

  3. 我目前是有个服务器被墙了 我买好了个域名也解析好了 这个需要什么脚本 我想试试用域名行不行

      1. 求问大佬 今天第一部 root ssh去ip都没有反应了 显示链接超时该怎么破 找了各种都不知道怎么回事

  4. 用这个版本配置了一下 配置好显示下面的文字 然后那个伪装站 也打不开了 需要做什么调整呢?
    [3285077742] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://139.180.195.205:8443/): > dial tcp 139.180.195.205:8443: connectex: No connection could be made because the target machine actively refused it.] > v2ray.com/core/common/retry: all retry attempts failed
    2022/02/15 14:14:09 tcp:127.0.0.1:60011 accepted tcp:youtube.com:443 [proxy]
    2022/02/15 14:14:09 tcp:127.0.0.1:60010 accepted tcp:youtube.com:443 [proxy]
    2022/02/15 14:14:09 [Warning] [271571220] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://139.180.195.205:8443/): > dial tcp 139.180.195.205:8443: connectex: No connection could be made because the target machine actively refused it. v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://139.180.195.205:8443/): > dial tcp 139.180.195.205:8443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://139.180.195.205:8443/): > dial tcp 139.180.195.205:8443: operation was canceled] > v2ray.com/core/common/retry: all retry attempts failed

  5. x-ui 配置好了 ,被墙的服务器也配置好了 ,这两个怎么协作 原理好像没懂

  6. 大大,x-ui搭好后经常会超时,一会又恢复,是协议不稳定还是其他什么原因,该做什么操作?

  7. 您好,请问手机端所有软件都无法连接节点是为什么呢?我从电脑上测试通过的节点分享到手机上就连不上,我需要改什么呢?希望解答一下,感谢!

      1. 好消息,我找到问题了,是ssl证书没有合并的原因。
        申请出来的证书一共有3个文件,需要先将证书进行合并:$ cat certificate.crt ca_bundle.crt >> certificate.crt

  8. 版主大大您好,xui配置完毕后,设置vless+ws+tls面板出现如下,怎么破,希望您有空解答一下,麻烦了!
    Xray 1.5.6 (Xray, Penetrates Everything.) Custom (go1.18.2 linux/amd64)

    A unified platform for anti-censorship.

    2022/05/30 04:31:59 [Info] infra/conf/serial: Reading config: bin/config.json

    Failed to start: main: failed to load config files: [bin/config.json] > infra/conf: Failed to build TLS config. > infra/conf: failed to parse certificate > infra/conf: both file and bytes are empty.

  9. 为什么搭建完可以测到延迟,但是基础连接已经关闭

  10. 您好!同样的配置,手机上v2rayN可以用,但是windows上就用不了。请问该怎么解决呢?

  11. 老大,我配置了VLESS+TCP+XTLS在手机上用不了,改成VMESS+WS+TLS可以用,但是伪装站打不开,正常吗?

  12. 大佬,进行域名申请SSL证书的时候出现报错,已经等了好几天了,为啥还是这样子呢?

    一键申请SSL证书(acme申请)
    /usr/bin/x-ui: line 447: /root/.acme.sh/acme.sh: No such file or directory
    [ERR] 修改默认CA为Lets’Encrypt失败,脚本退出

  13. 大佬,请问一下刚安装完xray是有在运行,可是一添加vmess等其他的节点,xray状态都是未运行,添加后端口不通时,我查看xray状态才知道是未运行,知道是啥问题吗?防火墙安全组都是正常通过的

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注