# 服务器搭建uptime-kuma

**URL:** <https://forum.rainyun.com/t/topic/5445>\
**Category:** 云服务器 RCS\
**Created:** [2023 年9 月 26 日 23:48 UTC](https://forum.rainyun.com/t/topic/5445 "2023-09-26T23:48:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![SheepJun](https://forum.rainyun.com/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@SheepJun](https://forum.rainyun.com/u/SheepJun)\
发布日期： [2023 年9 月 26 日 23:48 UTC](https://forum.rainyun.com/t/topic/5445/1 "2023-09-26T23:48:30Z")

</div>

![image](https://forum.rainyun.com/uploads/default/original/2X/e/e1ea3b497b22f326432576845a40dda108adda61.png)  
**准备**  
首先打开[雨云](https://www.rainyun.com/awa_)  
点击登陆/注册  
点击底下的立即注册  
 ![image](https://forum.rainyun.com/uploads/default/original/2X/f/fce26a19671be559845d4d7ec6f46d0a6406174f.jpeg)

优惠码：awa  
(可以领取一张5元无条件优惠劵)  
然后在赚取积分里把任务全做了  
然后在首页点击立即充值，充30元  
然后点击云服务器-购买云服务器

 ![image](https://forum.rainyun.com/uploads/default/original/2X/3/37b6dd80f5c78f40b5a2c1b5df6c720092707bd9.jpeg)  
 ![image](https://forum.rainyun.com/uploads/default/original/2X/c/c0c69f0112eb2eafb525291d233012ace2582e62.jpeg)  
建议买江苏宿迁/湖北十堰  
 ![image](https://forum.rainyun.com/uploads/default/original/2X/e/e49f16945d04363293eac381051782a63a368612.jpeg)

然后选择系统  
配置建议选标准版

 ![image](https://forum.rainyun.com/uploads/default/original/2X/3/3e9fabd42e57c3aa3ab1870c103e60b3dea54388.jpeg)

然后点击立即购买  
购买后等待创建完成  
然后点击管理  
**安装Uptime-Kuma**  
首先打开 [GitHub - louislam/uptime-kuma: A fancy self-hosted monitoring tool](https://github.com/louislam/uptime-kuma)  
**使用Docker**  
`docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1`  
⚠请仅使用 **本地卷** 。不支持其他类型，例如 NFS。  
这时，Uptime-Kuma会运行在[http://localhost:3001](http://localhost:3001)  
**使用非Docker**  
要求：

- 平台
  - ✅ 主要的Linux发行版，如Debian，Ubuntu，CentOS，Fedora和ArchLinux等。
  - ✅ Windows 10 （x64）、Windows Server 2012 R2 （x64） 或更高版本

- 环境
- [Node.js](https://nodejs.org/en/download/) 14 / 16 / 18 / 20.4
- [npm](https://docs.npmjs.com/cli/) \>= 7
- [Git](https://git-scm.com/downloads)
- [pm2](https://pm2.keymetrics.io/)

```bash
# Update your npm
npm install npm@9 -g

git clone https://github.com/louislam/uptime-kuma.git
cd uptime-kuma
npm run setup

# Option 1. Try it
node server/server.js

# (Recommended) Option 2. Run in the background using PM2
# Install PM2 if you don't have it:
npm install pm2 -g && pm2 install pm2-logrotate

# Start Server
pm2 start server/server.js --name uptime-kuma

```

这时，Uptime-Kuma会运行在[http://localhost:3001](http://localhost:3001)  
**安装**

 ![image](https://forum.rainyun.com/uploads/default/original/2X/c/c2e726bd1a0bcbeadd9ac8d20cfb75348d55727f.png)  
进入网站后会看到创建账号的页面  
输入语言，用户名密码  
点击创建即可进入控制面板
