0%

安装 AList

  • 下载

    下载地址

  • 解压到其他目录,如:D:\Program Files\

  • 生成默认账号和密码

    进入到 D:\Program Files\alist-windows-amd64\目录

    管理员打开 PowerShell

    1
    2
    3
    4
    5
    
    # 随机生成一个密码
    alist.exe admin random
    
    # 手动设置密码,如 123456
    alist.exe admin set 123456

安装 NSSM

nssm(Non-Sucking Service Manager)是Windows下最常用的「把普通exe程序注册成系统服务」的工具,非常稳定,能让程序后台静默运行(没有黑窗口)、开机自动启动、异常崩溃自动重启,比放快捷方式到启动文件夹靠谱太多。

  • 使用管理员打开 PowerShell,安装 nssm

    1
    
    winget install NSSM.NSSM

环境

  • 主机

    OS服务端客户端
    Ubuntu 24192.168.1.10192.168.1.11
  • 服务务

    服务说明
    Nightingale服务端(展示数据)
    Categraf客户端(采集数据)
    MySQLDB 存储
    RedisDB 缓存
    VictoriaMetrics时序数据库

安装好 docker 和 docker-compose

下载解压安装包

1
2
wget https://github.com/ccfos/nightingale/releases/download/v8.5.1/n9e-v8.5.1-linux-amd64.tar.gz
tar xf n9e-v8.5.1-linux-amd64.tar.gz -C /data/docker/n9e/

修改配置

  • 配置 Nightingale

    cd /data/docker/n9e/docker/compose-bridge/ && vim etc-nightingale/config.toml

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    
    [DB]
    # postgres: DSN="host=127.0.0.1 port=5432 user=root dbname=n9e_v6 password=1234 sslmode=disable"
    #DSN="root:1234@tcp(mysql:3306)/n9e_v6?charset=utf8mb4&parseTime=True&loc=Local&allowNativePasswords=true"
    DSN = "/app/data/n9e.db"				# 数据库文件路径
    # enable debug mode or not
    Debug = false
    # mysql postgres
    DBType = "sqlite" 						# 使用 sqlite 数据库
    # unit: s
    MaxLifetime = 7200
    # max open connections
    MaxOpenConns = 150
    # max idle connections
    MaxIdleConns = 50
    
    [Redis]
    # address, ip:port or ip1:port,ip2:port for cluster and sentinel(SentinelAddrs)
    Address = "127.0.0.1:6379"				# 
    # Username = ""
    # Password = "123456"
    # DB = 0
    # UseTLS = false
    # TLSMinVersion = "1.2"
    # standalone cluster sentinel
    RedisType = "miniredis"					# 使用 Nightingale 内置轻量级redis替代品,适合单机/测试,重启 Nightingale 容器数据丢失
    # RedisType = "miniredis"
    # Mastername for sentinel type
    # MasterName = "mymaster"
    # SentinelUsername = ""
    # SentinelPassword = ""

简介

  • Poste.io 是一个轻量级的开源邮件服务器程序
  • 具有内置的反垃圾邮件、反病毒功能;
  • 易于安装,支持 Docker 容器化部署;

前提条件

  • 安装 Docker 和 docker-compose

  • 有一台带公网 IP 地址的服务器

  • 注册一个域名(国内服务器需要先备案)

  • 开放以下端口

    服务端口
    HTTP80
    HTTPS443
    SMTP25
    SMTPS465
    MSA587
    POP3110
    POP3S995
    IMAP143
    IMAPS993
    SIEVE4190

环境准备

  • 操作系统:CentOS 7/8、Ubuntu 18.04/20.04/22.04、Debian 9/10、Rocky Linux 等;
  • 硬件配置:最小 2 CPU,4GB 内存;
  • 网络:能够访问互联网(用于下载部署脚本和二进制文件)
  • 依赖:系统需先安装 gitcurl

安装基础依赖:

1
2
3
4
5
# CentOS/RHEL
yum install git curl

# Ubuntu/Debian
apt install git curl

环境

主机名IP角色端口
kylinserver192.168.1.69服务端3260
kylinclient192.168.1.195客户端

部署 iSCSI 服务端

  • 安装服务端

    1
    
    dnf install targetcli
  • 查看本地磁盘

    image-20260121162650290

下载安装包

1
2
3
4
wget https://dl.rustfs.com/artifacts/rustfs/release/rustfs-linux-x86_64-musl-latest.zip
unzip rustfs-linux-x86_64-musl-latest.zip
chmod +x rustfs
mv rustfs /usr/local/bin/

创建配置文件

  • 单机单盘模式

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    
    # 单机单盘模式
    sudo tee /etc/default/rustfs <<EOF
    RUSTFS_ACCESS_KEY=rustfsadmin
    RUSTFS_SECRET_KEY=rustfsadmin
    RUSTFS_VOLUMES="/data/rustfs0"
    RUSTFS_ADDRESS=":9000"
    RUSTFS_CONSOLE_ENABLE=true
    RUST_LOG=error
    RUSTFS_OBS_LOG_DIRECTORY="/var/logs/rustfs/"
    EOF
  • 单机多盘模式

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    
    # 单机多盘模式
    sudo tee /etc/default/rustfs <<EOF
    RUSTFS_ACCESS_KEY=rustfsadmin
    RUSTFS_SECRET_KEY=rustfsadmin
    RUSTFS_VOLUMES="/data/rustfs{0...3}"
    RUSTFS_ADDRESS=":9000"
    RUSTFS_CONSOLE_ENABLE=true
    RUST_LOG=error
    RUSTFS_OBS_LOG_DIRECTORY="/var/logs/rustfs/"
    EOF

项目地址: https://github.com/umami-software/umami

安装

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
  umami:
    image: ghcr.io/umami-software/umami:latest
    ports:
      - "3000:3000"
    environment:
      DATABASE_URL: postgresql://umami:umami@db:5432/umami
      APP_SECRET: replace-me-with-a-random-string
    depends_on:
      db:
        condition: service_healthy
    init: true
    restart: always
    healthcheck:
      test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
      interval: 5s
      timeout: 5s
      retries: 5
  db:
    image: postgres:15-alpine
    environment:
      POSTGRES_DB: umami
      POSTGRES_USER: umami
      POSTGRES_PASSWORD: umami
    volumes:
      - ./data:/var/lib/postgresql/data
    restart: always
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
      interval: 5s
      timeout: 5s
      retries: 5

浏览器访问:http://IP:3000,用户名:admin,密码:umami

使用 ISO 制作离线内网源

  • 内网服务器安装

    1
    
    dnf install -y nginx createrepo yum-utils
  • 挂载麒麟 V10 ISO 镜像

    1
    
    mount -o loop Kylin-Server-V10.iso /mnt
  • 拷贝 ISO 到内网源目录

    1
    2
    
    mkdir -p /data/repo
    cp -a /mnt/* /data/repo/

安装工具

  • CentOS/RHEL

    1
    2
    
    yum install yum-utils createrepo
    dnf install dnf-utils createrepo

配置本地 yum 源

1
2
3
4
5
# CentOS6
wget -O /etc/yum.repos.d/CentOS-6.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo

# CentOS7
wget -O /etc/yum.repos.d/CentOS-7.repo https://mirrors.aliyun.com/repo/Centos-7.repo

同步官方 yum 源到本地 yum 服务器

  • 查看可同步的仓库

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    
    [root@localhost yum.repos.d]# yum repolist all
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirrors.aliyun.com
     * extras: mirrors.aliyun.com
     * updates: mirrors.aliyun.com
    repo id                                                                                repo name                                                                                                   status
    base/7/x86_64                                                                          CentOS-7 - Base - mirrors.aliyun.com                                                                        enabled: 10,072
    centos6-base                                                                           CentOS-6 Base                                                                                               enabled:  6,713
    centos6-extras                                                                         CentOS-6 Extras                                                                                             enabled:     47
    centos6-updates                                                                        CentOS-6 Updates                                                                                            enabled:  1,193
    centosplus/7/x86_64                                                                    CentOS-7 - Plus - mirrors.aliyun.com                                                                        disabled
    contrib/7/x86_64                                                                       CentOS-7 - Contrib - mirrors.aliyun.com                                                                     disabled
    extras/7/x86_64                                                                        CentOS-7 - Extras - mirrors.aliyun.com                                                                      enabled:    526
    updates/7/x86_64                                                                       CentOS-7 - Updates - mirrors.aliyun.com                                                                     enabled:  6,173
    repolist: 24,724
  • 创建仓库存放目录