Skip to content

trainpredator/x-ui-multi-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

3X-UI Multi-Instance Manager

A script for installing multiple 3X-UI instances on a single server with complete isolation.

╔════════════════════════════════════════╗
β•‘            X-UI Management             β•‘
β•‘             Control Panel              β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

β”Œβ”€ Available Operations ─────────────────┐
β”‚                                        β”‚
β”‚  [1] Install New Instance              β”‚
β”‚      β†’ Create and configure X-UI       β”‚
β”‚                                        β”‚
β”‚  [2] Check System Status               β”‚
β”‚      β†’ View all running instances      β”‚
β”‚                                        β”‚
β”‚  [3] Uninstall Instance                β”‚
β”‚      β†’ Remove X-UI installation        β”‚
β”‚                                        β”‚
β”‚  [4] Uninstall All Panels              β”‚
β”‚      β†’ Remove all X-UI installations   β”‚
β”‚                                        β”‚
β”‚  [5] Exit Program                      β”‚
β”‚      β†’ Close management script         β”‚
β”‚                                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Enter your choice [1-5]:

Key Features

βœ… Custom Instance Names - Use any name you want (e.g., my-panel, backup-ui, test-server)

βœ… Multiple Installation Sources - Install from GitHub releases or local files or URL

βœ… Smart Detection - Automatically finds existing instances

βœ… Complete Isolation - Each instance has separate database and configuration

βœ… Easy Management - Interactive menu and command-line for each instance

βœ… Security Action - Randomize admin credentials and Configure unique ports for each instance

Quick Installation

# Download the script
curl -O https://raw.githubusercontent.com/trainpredator/x-ui-multi-installer/main/install-x-ui.sh

# Make it executable and run
chmod +x install-x-ui.sh
./install-x-ui.sh

⚑ Command Line (Advanced)

# Install with custom name
./install-x-ui.sh --name my-panel                    # Latest from GitHub
./install-x-ui.sh --name backup-ui --github v1.8.3   # Specific version
./install-x-ui.sh --name test-server --file /path/to/file.tar.gz  # Local file

# Install with auto-numbered names (x-ui, x-ui2, x-ui3...)
./install-x-ui.sh --github                           # Latest version
./install-x-ui.sh --file /path/to/file.tar.gz        # From local file

# Management commands
./install-x-ui.sh --status                           # Check all instances
./install-x-ui.sh --uninstall my-panel               # Remove specific instance
./install-x-ui.sh --uninstall                        # Show removal menu
./install-x-ui.sh --help                             # Show all options

πŸ—‘οΈ Uninstallation

Easy Removal

# Interactive menu - choose which instance to remove
./install-x-ui.sh --uninstall

# Remove specific instance directly
./install-x-ui.sh --uninstall my-panel
./install-x-ui.sh --uninstall x-ui2
Manual Removal (if needed)
# Replace 'my-panel' with your instance name
sudo systemctl stop my-panel
sudo systemctl disable my-panel
sudo rm -rf /usr/local/my-panel/
sudo rm -f /usr/bin/my-panel
sudo rm -f /etc/systemd/system/my-panel.service
sudo rm -rf /etc/my-panel/  # This removes the database too
sudo systemctl daemon-reload

πŸ”Ί If you encounter issues with xray, check for port conflicts.

About

A script for installing multiple X-UI instances on a single server with complete isolation

Resources

Stars

Watchers

Forks

Languages