Install Uptime Kuma on Windows

0

What is Uptime Kuma?

Uptime Kuma is a fancy self-hosted monitoring tool. –https://github.com/louislam/uptime-kuma

Install Uptime Kuma

  1. Log into the Windows device
  2. Download Git Download
  3. Download NodeJS Download
  4. Install Git, accepting all defaults
  5. Install NodeJS, accepting all defaults
  6. Click the Start button > Search powershell
  7. Right click on Windows PowerShell > Run as administrator
  8. Run the following commands in the PowerShell window
# change directory to the root of c:\
cd \
# clone from git
git clone https://github.com/louislam/uptime-kuma.git .\uptime-kuma
# change directory to uptime-kuma
cd .\uptime-kuma\
# install dependencies
npm install
# run setup
npm run setup
# run uptime kuma
node server\server.js
  1. Open a web browser and navigate to http://DNSorIP:3001
  2. Select a language and create an administrator username and password > Click Create
  3. Welcome to Uptime Kuma

Run Uptime Kuma as a Service (Optional, but recommended)

  • Press CTRL + C to kill the running Uptime Kuma process
  • Click on the Start Button > Type task > Launch Task Scheduler
  • Right click the Task Scheduler Library folder in the left pane > Create Basic Task…
  • Set the name to Uptime Kuma and optionally set a Description > Click Next
  • For the Trigger, select When the computer starts > Click Next
  • For the Action, select Start a program > Click Next
  • Complete the form fields as follows:
Program/script: "%ProgramFiles%\nodejs\node.exe"
Add arguments: C:\uptime-kuma\server\server.js
Start in: C:\uptime-kuma
  • Click Next
  • Check the Open the Properties dialog checkbox > Click Finish
  • In the Properties dialog, click the Change User or Group… button
  • Type System in the Object name field > Click OK
  • Check the Run with highest privileges box
  • Click OK to create the scheduled task
  • Right click the Uptime Kuma task > Run
  • Refresh the open web browser to verify Uptime Kuma is now running from the scheduled task

How to Update

Windows PowerShell -> Run as administrator
cd <uptime-kuma-directory>
# Update from git
git fetch –all
git checkout 1.23.11 –force #number of new version
# Install dependencies and prebuilt
npm install –production
npm run download-dist

Share.

Comments are closed.