Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail
1. Install controller



To install the UniFi controller, we need to install mongodb, Java JDK, unzip, wget first.

yum -y install epel-release

yum -y install mongodb-server java-1.8.0-openjdk unzip wget

Install Unifi controller and

yum install
systemctl enable unifi.service
systemctl start unifi.service

Then we need to open a couple of ports for controller to function:

sudo firewall-cmd --add-port=22/tcp --permanent
# Unifi - Device Inform & Management   
sudo firewall-cmd --add-port=8080:8081/tcp --permanent
#https management
sudo firewall-cmd --add-port=8443/tcp --permanent
#Unifi - Guest Portal Redirect (SSL)
sudo firewall-cmd --add-port=8843/tcp --permanent
# Unifi - Guest Portal Redirect
sudo firewall-cmd --add-port=8880/tcp --permanent
sudo firewall-cmd --add-port=10000:10010/tcp --permanent
#AP discovery
sudo firewall-cmd --add-port=10001/udp --permanent

Give the controller a static IP address:

sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

Then open a web browser and type: