TSF – Giải pháp IT toàn diện cho doanh nghiệp SMB | HCM

Automatic start Unifi Controller with Windows

Setting up automatic start for UniFi Controller on Windows ensures your network management system is always running, even after a reboot. By default, the UniFi Controller doesn’t start automatically when Windows starts, which can cause downtime or loss of monitoring data. In this guide, you’ll learn how to configure UniFi Controller as a Windows service so it launches automatically on system startup. We’ll show you how to use the Windows Task Scheduler and NSSM (Non-Sucking Service Manager) to achieve a reliable startup process. You’ll also learn how to check the service status, troubleshoot startup errors, and verify that the UniFi web interface is accessible after boot. This setup is ideal for IT administrators who manage networks using UniFi APs, switches, and gateways. Follow this step-by-step tutorial to make your UniFi Controller always available and running smoothly on Windows.

Step 1: Download

Install java 21

https://adoptium.net/temurin/releases/?version=21

Install NSSM

https://nssm.cc/download

Step 2: Create Services nssm

CMD install service nssm install UniFi

  • Path:

C:\Program Files\Eclipse Adoptium\jdk-21.0.8.9-hotspot\bin\java.exe

  • Startup directory:

C:\Users\Administrator\Ubiquiti UniFi

  • Arguments:

–add-opens java.base/java.time=ALL-UNNAMED –add-opens java.base/java.lang=ALL-UNNAMED –add-opens java.base/java.util=ALL-UNNAMED -Xmx1024M -jar lib\ace.jar start

Step option: Delete Services If Fail

sc stop UniFi

sc delete UniFi