Claw cloud 容器 VPS 安装 Node.js 开发环境,搭建 Uptime Kuma 免费开源监控神器

Vevc • 2307 人浏览

本期摘要:Claw cloud | 容器vps | Uptime Kuma | Node.js | nvm | 监控工具

Claw cloud 注册地址:
https://console.run.claw.cloud/signin?link=TSWVWVN3G294

容器 VPS 项目地址:
https://github.com/vevc/ubuntu

Uptime Kuma 官网及项目地址:
https://uptime.kuma.pet
https://github.com/louislam/uptime-kuma

Node.js 官网:
https://nodejs.org

nvm 项目地址:
https://github.com/nvm-sh/nvm

Why

1. 网站监控(节点监控)
2. 定时请求保活

Uptime Kuma, Node.js, nvm 的关系

1. Uptime Kuma 项目使用 Node.js 语言开发,运行在 Node.js 环境中
2. nvm (Node Version Manager): Node.js 的版本管理工具

nvm 优点

1. 方便安装最新版 Node.js, apt install 安装的版本老旧
2. 多版本 Node.js 任意切换
3. 安装的所有文件存放在用户家目录

使用 Supervisor 管理并启动

[program:uptime-kuma]
environment=PATH="/home/vevc/.nvm/versions/node/v20.x/bin:/usr/sbin:/usr/bin:/sbin:/bin"
directory=/home/vevc/uptime-kuma
command=node server/server.js
autostart=true
autorestart=true
user=vevc

Node.js Release info

https://nodejs.org/en/about/previous-releases