一、VPS重装Debian(DD脚本)
sudo -i
apt-get install -y xz-utils openssl gawk file wget
wget –no-check-certificate -qO InstallNET.sh ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’ && chmod +x InstallNET.sh
bash InstallNET.sh -d 11 -v 64 -a -p pppppp –ip-addr 10.0.0.201 –ip-gate 10.0.0.1 –ip-mask 255.255.255.0(谷歌云需要更改ip参数,甲骨文云经测试无需加ip地址相关参数)
二、安装docker
apt install curl && curl -sSL https://get.docker.com/ | sh
三、搭建x-ui环境
1、新建docker虚拟网络
docker network create –subnet 192.168.18.0/24 –gateway 192.168.18.1 mianban
2、创建x-ui配置相关文件夹,以后可以直接转移配置
cd /home && mkdir x-ui && cd x-ui
3、安装并启动x-ui
docker run -itd –network=mianban –ip 192.168.18.2
-v $PWD/db/:/etc/x-ui/
-v $PWD/cert/:/root/cert/ -p 8443:8443 -p 3725-4355:3725-4355 -p 54321:54321
–name x-ui –restart=unless-stopped
enwaiax/x-ui:alpha-zh
注意:面板端口54321,x-ui可用端口范围3725-4355,可自行更改
四、访问http://ip:54321,进行x-ui面板相关设置
文章评论