Install Script
This shell script currently only supports Linux systems. If you are using another operating system, please refer to the quick start guide for manual installation or use Docker.
Install or Upgrade
install.sh install
Install or Update Nginx UI.
Usage
install.sh install [OPTIONS]Options
| Options | |
|---|---|
-l, --local <file> | Install Nginx UI from a local file (string) |
-p, --proxy <url> | Download through a proxy server (string)e.g., -p http://127.0.0.1:8118 or -p socks5://127.0.0.1:1080 |
-r, --reverse-proxy | Download through a reverse proxy server (string)e.g., -r https://cloud.nginxui.com/ |
-c, --channel <channel> | Specify the version channel (string)Available channels: stable (default), prerelease, dev |
Version Channels
| Channel | Description |
|---|---|
stable | Latest stable release (default) - Recommended for production use |
prerelease | Latest prerelease version - Contains new features that are being tested before stable release |
dev | Latest development build from dev branch - Contains the newest features but may be unstable |
Quick Usage
# Install the latest stable version
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install# Install the latest prerelease version
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel prerelease# Install the latest development build
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ install --channel devThe default listening port is 9000, and the default HTTP Challenge port is 9180. If there is a port conflict, please modify /usr/local/etc/nginx-ui/app.ini manually, then use systemctl restart nginx-ui to restart the Nginx UI service. For more information, please check reference for config.
Remove
install.sh remove
Remove Nginx UI.
Usage
install.sh remove [OPTIONS]Options
| Options | |
|---|---|
--purge | Remove all the Nginx UI files, include logs, configs, etc (boolean) |
Quick Usage
# Remove Nginx UI, except configuration and database files
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ remove# Remove all the Nginx UI file, include configuration and database files
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ remove --purgeHelp
install.sh help
Display available options.
Usage
install.sh helpQuick Usage
bash -c "$(curl -L https://cloud.nginxui.com/install.sh)" @ helpControl Service
By this script, the Nginx UI will be installed as a service. The installation script detects your system's service manager and sets up the appropriate service control mechanism.
Systemd
If your system uses systemd, please use the following systemctl commands to control it:
systemctl start nginx-uisystemctl stop nginx-uisystemctl restart nginx-uisystemctl status nginx-uisystemctl enable nginx-uiOpenRC
If your system uses OpenRC, please use the following rc-service commands to control it:
rc-service nginx-ui startrc-service nginx-ui stoprc-service nginx-ui restartrc-service nginx-ui statusrc-update add nginx-ui defaultInit.d
If your system uses traditional init.d scripts, please use the following commands to control it:
/etc/init.d/nginx-ui start/etc/init.d/nginx-ui stop/etc/init.d/nginx-ui restart/etc/init.d/nginx-ui status