-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Installation
Currently the install.sh
shell script supports the followings CPU arches:
- AMD64
- ARM64
- S390X
Before installation,please ensure that you are root
user and your system use bash
as shell interpreter,meanwhile your server can use curl
access Github
And you can use the following command to complete installation:
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
If you need install a specific version,please add version
(e.g 0.3.3.9) behind like this:
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh) 0.3.3.9
During the installation,the shell script will request you to set panel listening port
、user name
、and user password
.
If you type enter directly,it will set to default value or remain the original ones.
After installation,you can type x-ui
to enter control menu,and the x-ui status will show below:
x-ui 面板管理脚本
0. 退出脚本
————————————————
1. 安装 x-ui
2. 更新 x-ui
3. 卸载 x-ui
————————————————
4. 重置用户名密码
5. 重置面板设置
6. 设置面板端口
7. 查看当前面板设置
————————————————
8. 启动 x-ui
9. 停止 x-ui
10. 重启 x-ui
11. 查看 x-ui 状态
12. 查看 x-ui 日志
————————————————
13. 设置 x-ui 开机自启
14. 取消 x-ui 开机自启
————————————————
15. 一键安装 bbr (最新内核)
16. 一键申请SSL证书(acme申请)
面板状态: 已运行
是否开机自启: 是
xray 状态: 运行
请输入选择 [0-16]:
And then you can type a number for a specific function.
If your system has not been supported by the shell script yet or some others reasons,you can choose install x-ui manually.
First you need download the latest released version,please choose the right version according your system.
Second upload the package in root
directory,then use tar
command to decompress the file,you can follow the instrcutions step by step:
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
If there are new versions and you want to upgrade,the shell script provides an option to upgrade the latest released version easily.
Just type x-ui
to enter control menu and then type 2
to upgrade.