This is the Non-Docker installation - check out the GitHub page to use Docker.
Uptime Kuma requires the following tools:
Make sure NPM is on its latest version
npm install npm -g
Clone Uptime Kuma from GitHub. I'm going to place my installation in /opt/uptime-kuma
git clone https://github.com/louislam/uptime-kuma.git /opt/uptime-kuma
cd into the new installation directory
cd /opt/uptime-kuma
Run the setup
npm run setup
Manually start Uptime Kuma
node server/server.js
Install PM2 to run Uptime Kuma in the background
npm install pm2 -g
pm2 start server/server.js --name uptime-kuma -- --port=3001 --host=127.0.0.1
Other useful commands
pm2 start uptime-kuma
pm2 stop uptime-kuma
pm2 restart uptime-kuma
# To run at startup
pm2 startup