Skip to content

快速开始

环境要求

在开始之前,请确保您的系统满足以下要求:

最低配置

  • 操作系统: Linux (推荐 Ubuntu 20.04+) / Windows Server 2019+ / macOS 11+
  • CPU: 2 核
  • 内存: 4 GB
  • 磁盘: 20 GB 可用空间
  • 数据库: PostgreSQL 14+ 或 MySQL 8.0+
  • 缓存: Valkey 或 Redis 6.0+

推荐配置

  • CPU: 4 核及以上
  • 内存: 8 GB 及以上
  • 磁盘: SSD 100 GB 及以上

安装步骤

1. 下载程序

Linux (AMD64)

bash
# 下载最新版本
wget https://download.nnipms.liumou.site/nnipms-linux-amd64.tar.gz

# 解压
tar -xzf nnipms-linux-amd64.tar.gz

# 进入目录
cd nnipms-linux-amd64

Windows (AMD64)

  1. 下载 nnipms-windows-amd64.zip
  2. 解压到安装目录,如 C:\Program Files\NNIPMS

macOS

bash
# 下载最新版本
wget https://download.nnipms.liumou.site/nnipms-darwin-amd64.tar.gz

# 解压
tar -xzf nnipms-darwin-amd64.tar.gz

# 进入目录
cd nnipms-darwin-amd64

查看所有版本

2. 配置数据库

PostgreSQL

bash
# 创建数据库
createdb nnipms

# 创建用户
createuser -P nnipms_user

MySQL

sql
CREATE DATABASE nnipms CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'nnipms_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON nnipms.* TO 'nnipms_user'@'localhost';

3. 配置文件

复制配置文件模板:

bash
# Linux/macOS
cp config/config.example.toml config/config.toml

# Windows
copy config\config.example.toml config\config.toml

编辑 config/config.toml,配置数据库连接:

toml
[database]
driver = "postgres"  # 或 "mysql"
host = "localhost"
port = 5432          # MySQL 使用 3306
username = "nnipms_user"
password = "your_password"
database = "nnipms"
sslmode = "disable"  # PostgreSQL 专用

4. 启动服务

Linux/macOS

bash
# 直接运行
./nnipms

# 或使用 systemd(推荐用于生产环境)
sudo cp scripts/nnipms.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start nnipms
sudo systemctl enable nnipms

Windows

powershell
# 直接运行
.\nnipms.exe

# 或使用服务方式安装(需要管理员权限)
.\nnipms.exe install
.\nnipms.exe start

5. 访问系统

打开浏览器访问:http://localhost:8070

默认管理员账号:

  • 用户名: admin
  • 密码: admin123456

安全提示

首次登录后请立即修改默认密码!

安装 Probe 客户端(可选)

Probe 客户端用于检测 IP 在线状态和端口连通性。

Linux

bash
# 下载 Probe 客户端
wget https://download.nnipms.liumou.site/probe-linux-amd64.tar.gz

# 解压
tar -xzf probe-linux-amd64.tar.gz
cd probe-linux-amd64

# 配置
cp probe-config.example.toml probe-config.toml
vi probe-config.toml

# 启动
./probe-client

Windows

  1. 下载 probe-windows-amd64.zip
  2. 解压并编辑 probe-config.toml
  3. 运行 probe-client.exe

下一步

Released under the MIT License.