If you have followed our guide to install the Ubiquiti UniFi SDN controller on CentOS, the process to update or upgrade the UniFi SDN controller is below.
Step-by-step guide
Most of these commands must be run as root, so either log in as root or use sudo.
Stop the UniFi SDN controller
systemctl stop unifi
Back up your current installation. Choose one of the following options.
- Take a snapshot of the entire VM (easiest to restore)
Save a copy of the latest auto backup file from the autobackup directory
/opt/UniFi/data/backup/autobackup/
Copy the entire data directory to another location or make an archive of it
/opt/UniFi/data
Change directory to the temporary directory
cd /tmp
Install the generic Linux version of the UniFi SDN controller
Make sure to read the release notes and ensure that your server meets the requirements, including Java and MongoDB versions!
- Find the latest version number from the UniFi download page
Download the ZIP file
wget https://www.ubnt.com/downloads/unifi/[version]/UniFi.unix.zip
Fill in [version] with the correct version number. ex. /unifi/5.11.50/UniFi.unix.zip
Unzip the contents
unzip -q UniFi.unix.zip -d /opt
You should be prompted to replace files
replace /opt/UniFi/bin/mongod? [y]es, [n]o, [A]ll, [N]one, [r]ename:
Enter A and press enter.
Set the correct owner for the new files
chown -R ubnt:ubnt /opt/UniFi
Start the service
systemctl start unifi
- Go to your controller's web address in a browser.
The address will be the FQDN or IP followed by the admin port, 8443.
https://192.168.1.100:8443
- It is safe to bypass certificate warnings since the controller does not have publicly trusted certificates installed.
- That's it! Everything should be updated and working!
Related articles