How to: Upgrading Unifi Controller on CentOS

Credit : https://community.spiceworks.com/how_to/129094-upgrading-unifi-controller-on-centos

This is a follow on how to for my installing UniFi controller on CentOS guide found here: https://community.spiceworks.com/how_to/128121-installing-unifi-controller-on-centos

This guide will be used to upgrade your UniFi controller to the latest version.

7 Steps total
Step 1: Take a backup of your UniFi Configuration
tar –zcvf /root/backup.tar.gz /opt/UniFi/data

Step 2: Stop the Unifi Service
service unifi stop

Step 3: Download the Latest version (currently 4.8.18)
wget https://www.ubnt.com/downloads/unifi/5.7.23/UniFi.unix.zip (obviously this is subject to change as newer versions come out)

Step 4: Unzipping the package
unzip -qo /root/UniFi.unix.zip -d /opt
chown -R ubnt:ubnt /opt/UniFi

Step 5: Restore the configuration from the backup made at the start.
tar -xzvf backup.tar.gz -C /opt/UniFi/data/

Step 6: Start the UniFi service
service unifi start

Step 7: cleanup (optional)
rm /root/Unifi.unix.zip

Once all of the above has been done. you can verify the update has taken by logging into the unifi controller, and checking the maintenance section under the settings window.

Found on Spiceworks: https://community.spiceworks.com/how_to/129094-upgrading-unifi-controller-on-centos?utm_source=copy_paste&utm_campaign=growth

  1. Stop Service:
    1. systemctl stop unifi.service
  2. Download latest software:
    1. cd /usr/src
    2. wget <download URL>
  3. Extract UniFi Video software:
    1. unzip UniFi.unix.zip -d /opt/
  4. Start Service:
    1. systemctl start unifi.service
Advertisements

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out /  เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out /  เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out /  เปลี่ยนแปลง )

Connecting to %s