Linux – Install UniFi Controller (Manjaro)

sudo pacman -S jre8-openjdk-headless jre8-openjdk jdk8-openjdk openjdk8-doc openjdk8-src
sudo pamac install mongodb-bin
sudo systemctl enable --now mongodb
sudo systemctl status mongodb
wget http://dl.ubnt.com/unifi/6.5.55/UniFi.unix.zip
unzip UniFi.unix.zip -d /opt/
sudo vim /etc/systemd/system/unifi.service
[Unit]
Description=UniFi Web Controller
After=syslog.target network.target

[Service]
Type=simple
User=ubnt
WorkingDirectory=/opt/UniFi
ExecStart=/sbin/java -Xmx1024M -jar /opt/UniFi/lib/ace.jar start
ExecStop=/sbin/java -jar /opt/UniFi/lib/ace.jar stop
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target
sudo systemctl enable unifi.service
sudo systemctl start unifi.service

Browser URL https://127.0.0.1:8443/