V2ray面板V2ray-ui升级版X-ui

itabc_ji 2023-10-18 PM 286℃ 0条

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)

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

别忘记放开端口:54321
登录地址:IP地址:54321

手动安装&升级
首先从 https://github.com/vaxilu/x-ui/releases 下载最新的压缩包,一般选择amd64架构
然后将这个压缩包上传到服务器的/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

建议系统
CentOS 7+
Ubuntu 16+
Debian 8+
常见问题
从 v2-ui 迁移
首先在安装了 v2-ui 的服务器上安装最新版 x-ui,然后使用以下命令进行迁移,将迁移本机 v2-ui 的所有 inbound 账号数据至 x-ui,面板设置和用户名密码不会迁移

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

x-ui v2-ui

https://github.com/vaxilu/x-ui

配置:ID,用v2ray工具生成
nginx配置:

 location / {
            proxy_pass http://www.fan-2000.com; #伪装网址
            proxy_redirect off;
            proxy_ssl_server_name on;
            sub_filter_once off;
            sub_filter "www.fan-2000.com" $server_name;
            proxy_set_header Host "www.fan-2000.com";
            proxy_set_header Referer $http_referer;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header User-Agent $http_user_agent;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto https;
            proxy_set_header Accept-Encoding "";
            proxy_set_header Accept-Language "zh-CN";
        }
    location /180e3150-6c36-4fc5-fef7-f0c4c270b700 {   #分流路径
            proxy_redirect off;
            proxy_pass http://127.0.0.1:2020; #Xray端口
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    location /180e3150-6c36-4fc5-fef7-f0c4c270b700-xui {   #xui路径登录面版
            proxy_redirect off;
            proxy_pass http://127.0.0.1:999;  #xui监听端口
            proxy_http_version 1.1;
            proxy_set_header Host $host;
        }
标签: none

非特殊说明,本博所有文章均为博主原创。

评论啦~