科学上网:VPS 搭建 X-UI 面板
使用X-UI搭建代理服务,具有以下优点:
- 支持系统状态监控:如CPU、内存、硬盘等状态
- 支持多用户多协议,网页可视化操作
- 支持流量统计
- 支持自定义Xray配置模板
- 支持HTTPS访问面板
- 支持面板自定义端口,账号与密码
- 快速生成分享连接或二维码
- 支持CDN套用
- 支持Fallback分流设置
详情请参照VPS搭建教程:https://youtu.be/i5iDHRJiJ7c
一、 准备工作
- 1、已经解析的域名,Win+R输入CMD 回车:键入ping 空格输入你的域名,检查一下是否可以ping通
- 2、一台境外VPS主流系统,例如:Debian/Ubuntu/CentOS
- 3、下载并安装FinalShell SSH工具
Windows版下载地址: http://www.hostbuf.com/downloads/finalshell_install.exe
macOS版下载地址: http://www.hostbuf.com/downloads/finalshell_install.pkg
二、安装更新运行环境
1、Debian/Ubuntu系统执行以下命令:
[code] apt update -y && apt install -y curl && apt install -y socat [/code]
2、CentOS系统执行以下命令:
[code] yum update -y && yum update -y && yum install -y socat [/code]
运行Acme脚本
[code] curl https://get.acme.sh | sh [/code]
申请证书及密钥
【将代码中注释的邮箱和域名,改为你自己的】 [code] ~/.acme.sh/acme.sh —register-account -m xxxx@gmail.com [/code]
[code] ~/.acme.sh/acme.sh —issue -d 输入你的域名 —standalone [/code]
下载证书及密钥
[code] ~/.acme.sh/acme.sh —installcert -d 输入你的域名 —key-file /root/private.key —fullchain-file /root/cert.crt [/code]
安装&升级x-ui面板一键脚本
[code] bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh) [/code]
##BBR2加速##
[code] wget —no-check-certificate -q -O bbr2.sh “https://github.com/yeyingorg/bbr2.sh/raw/master/bbr2.sh” && chmod +x bbr2.sh && bash bbr2.sh auto [/code]
注意事项
- 1、如何在申请证书及密钥这一步搭建失败,检查并放行端口,口令如下:
查看已开放的端口 [code] firewall-cmd —list-ports [/code]
开放端口(开放后需要要重启防火墙才生效) [code] firewall-cmd —zone=public —add-port=3338/tcp —permanent [/code]
重启防火墙 [code] firewall-cmd —reload [/code]
停止防火墙 [code] systemctl stop firewalld [/code]
- 2、如果是全新安装,默认网页端口为 54321,用户名和密码默认都是 admin , 如何遇到打不开的情况,可能是端口没有放行,用【方法1】键入停止防火墙代码,或键入开放端口代码。
- 3、V2ray软件:设置——参数设置——V2rayN设置——Core类型改为Xray_Core
支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或打赏支持!














