Introduction:

Uptime Kuma, a monitoring tool that brings you peace of mind, can monitor websites, databases, Docker containers, and even Steam game servers. It integrates nearly 50 notification methods for real-time status updates, allowing direct configuration of proxies and reverse proxies without the need for tedious installation, making usage more relaxed.

Effect Images:


Disadvantages:

Suitable for personal use, you can share the interface for monitoring without the need to log in, but it is not possible to configure a user system. Only one administrator account can be used for management.

Deployment Method One: Using Docker Installation

Step One: Update Sources

Ubuntu/Debian:

apt update -y && apt upgrade -y

Centos:

yum update -y && yum upgrade -y

Step Two: Install Docker

curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh

Step Three: Deployment

docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1

After deployment, you can access http://<your-ip>:8090 to access the web interface.

Deployment Method Two: Installation from Source Code

Step One: Update Sources and Install Dependencies

Ubuntu/Debian:

apt update -y && apt upgrade -y 
sudo apt install git -y
sudo apt install curl -y    

Centos:

yum update -y && yum upgrade -y   
sudo yum install git -y
sudo yum install curl -y

Step Two: Install Node.js

Uptime Kuma requires Node.js 14, 16, 18, or 20.4. Here, I chose to install Node.js 16 as an example.

Run the following commands to install Node.js 16:

Ubuntu/Debian:

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs

Centos:

curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -
sudo yum install -y nodejs

Verify the installation of Node.js and npm:

node -v
npm -v

Step Three: Clone Repository

git clone https://github.com/louislam/uptime-kuma.git

Step Four: Set Up Uptime Kuma

cd uptime-kuma
npm run setup

Step Five: Install and Configure PM2

sudo npm install pm2 -g
pm2 install pm2-logrotate

Step Six: Start Uptime Kuma with PM2

pm2 start server/server.js --name uptime-kuma

After deployment, you can access http://<your-ip>:3001 to access the web interface.

Step Seven: Configure PM2 for Auto-Start

If you want Uptime Kuma to run automatically at system startup, execute the following commands:

pm2 save
pm2 startup

Tag:Configure, Uptime Kuma, Online condition monitoring, Monitoring tools

Original link:http://enblog.fuyiran.link/Technology/15.html

Copyright: All posts on this blog, unless otherwise stated, are published using theCC BY-NC-SA 4.0 license agreement. Please indicate the source for reprinting Fu Speaking (enblog.fuyiran.link)

Add a new comment.