3x-ui面板保姆级安装配置教程

📅 2026/8/27 13:54:13
3x-ui面板保姆级安装配置教程
当前的教程版本为2.8新版本的配置更加简单需要新版本教程的小伙伴可以看我新写的这篇文章新版本3X-UI安装配置教程切换root账户 进行安装su root bash (curl -Ls https://raw.githubusercontent.com/MHSanaei/3x-ui/master/install.sh)出现下面的提示时输入y确定Would you like to customize the Panel Port settings? (If not, a random port will be applied) [y/n]: y根据提示设置3X-UI的面板端口Please set up the panel port: 54321 Your Panel Port is: 54321 Port set successfully: 54321 Username and password updated successfully Base URI path set successfully选择2模式然后一路按回车就完事了Choose SSL certificate setup method: 1. Lets Encrypt for Domain (90-day validity, auto-renews) 2. Lets Encrypt for IP Address (6-day validity, auto-renews) Note: Both options require port 80 open. IP certs use shortlived profile. Choose an option (default 2 for IP): 2 Using Lets Encrypt for IP certificate (shortlived profile)... Do you have an IPv6 address to include? (leave empty to skip): Setting up Lets Encrypt IP certificate (shortlived profile)... Note: IP certificates are valid for ~6 days and will auto-renew. Port 80 must be open and accessible from the internet. Installing acme.sh for SSL certificate management... acme.sh installed successfully重置管理员账号密码root账户下输入x-ui进入控制终端输入6如下开启 54321、443 端口sudo ufw allow 54321,443/tcp sudo ufw status在腾讯云/阿里云/ucloud 防火墙中开放54321、443端口访问x-ui面板root账户输入x-ui settings复制Access URL在浏览器中访问root10-11-183-195:/home/ubuntu# x-ui settings The OS release is: ubuntu [INF] current panel settings as follows: Panel is secure with SSL hasDefaultCredential: false port: 54321 webBasePath: /jctEtK95lYLdk8BmSc/ Access URL: https://你的IP地址:54321/jctEtK95lYLdk8BmSc/x-ui面板配置输入账户密码进入面板点击入站列表点击添加入站端口443安全选择 RealityTarget 输入www.intel.com:443SNI 输入 www.intel.com点击Get New Cert以及Get New Seed生成公钥私钥这里还会自动生成Short IDs后续配置yaml会用到点击完成点击添加客户端可以修改下电子邮箱推荐修改为用户名方便区分这里的ID后续配置yaml会用到点击添加客户端按钮即可由于审核问题yaml的配置大家可以问一下ai修改服务器IP、uuid、public-key、short-id 这几个配置即可这里放出部分配置proxies: - name: US type: vless server: 服务器IP地址 port: 443 uuid: x-ui面板中的用户id见步骤9 network: tcp tls: true udp: true flow: xtls-rprx-vision servername: www.intel.com client-fingerprint: chrome reality-opts: public-key: x-ui面板中的站点公钥见步骤9 short-id: 对应x-ui面板中的Short IDs注意Short IDs是用逗号隔开的这里只需要复制一个id见步骤9创作不易帮忙点个赞吧~