Install Uptime Kuma on Linux
i12bretro
#UpTimeKuma #Linux #Monitoring
Full steps can be found at https://i12bretro.github.io/tutorials/0614.html
What is Uptime Kuma?
Uptime Kuma is a fancy self-hosted monitoring tool. - https://github.com/louislam/uptime-kuma
Install Uptime Kuma
- Log into the Linux device
- Run the following commands in a terminal window
update software repositories
sudo apt updateinstall available software updates
sudo apt upgrade -yinstall prerequisites
sudo apt install git curl -yadd nodejs software repository
curl -sL https://deb.nodesource.com/setup_current.x | sudo bash -install nodejs
sudo apt install nodejs -yclone from git
git clone https://github.com/louislam/uptime-kuma.git ./uptime-kumachange directory to ./uptime-kuma
cd uptime-kumarun setup
npm run setuprun uptime kuma
node server/server.js - Open a web browser and navigate to http://DNSorIP:3001
- Select a language and create an administrator username and password ≫ Click Create
- Welcome to Uptime Kuma
Run Uptime Kuma as a Service (Optional, but recommended)
- Press CTRL + C to kill the running Uptime Kuma process
- Continue with the following steps to run Uptime Kuma as a service
create nodejs user
sudo useradd nodejschange directory out of uptime-kuma
cd ..move uptime kuma to /opt
sudo mv ~/uptime-kuma /optcreate service bash file
sudo nano /opt/uptime-kuma/uptime-kuma.sh - Paste the following configuration into uptime-kuma.sh #!/usr/bin/bash /usr/bin/node /opt/uptime-kuma/server/server.js
- Press CTRL+O, Enter, CTRL+X to write the changes
- Continue with the following commands
make uptime-kuma.sh executable
sudo chmod +x /opt/uptime-kuma/uptime-kuma.shcreate uptime-kuma service file
sudo nano /etc/systemd/system/uptime-kuma.service - Paste the following configuration into uptime-kuma.service [Unit] Description=Uptime Kuma [Service] ExecStart=/opt/uptime-kuma/uptime-kuma.sh Restart=always User=nodejs Group=nodejs WorkingDirectory=/opt/upt ... https://www.youtube.com/watch?v=lx3KQ_rZvxU
2022-01-29
0.03222372 LBC
Copyrighted (contact publisher)
20500778 Bytes