GaGa's Blog

One GaGa, One World !

1. docker-compose 配置示例(compose.yml)

1
2
3
4
5
6
7
8
9
10
services:
attu:
image: zilliz/attu:v2.6.3
container_name: attu
ports:
- "3000:3000"
environment:
MILVUS_URL: your-milvus-host:19530
# HOST_URL: /attu
restart: unless-stopped

1.1. 使用方式

1
2
3
4
5
# 较新的docker集成compose
docker compose up -d

# 或老版本
docker-compose up -d
Read more »

Portainer 是一个轻量级、开源的 Docker 可视化管理工具,通过调用 Docker API,为用户提供 Web 管理界面,可用于集中管理多个 Docker 主机与容器环境,适合测试环境与生产环境的日常运维管理。

主要功能

  • 容器管理(创建、启动、停止、删除、日志查看)
  • 镜像管理(拉取、删除、构建)
  • 网络管理(Docker network 管理)
  • 数据卷管理(volume 管理)
  • 多主机环境统一管理
  • 支持 Swarm / Kubernetes(高级版本)

项目地址

Read more »

CentOS 8.5 机器自动重启,核心目标只有一个:
判断这是“主动重启(panic / watchdog / 电源)”还是“被动重启(人为 / 系统更新)”,并尽量拿到重启前最后一刻的内核证据

在 Linux 世界里,真相通常藏在三层:

  • 内核(kernel)
  • 系统日志(journald / rsyslog)
  • 硬件/固件(IPMI、BMC、ACPI)

下面按从最可靠 → 最容易丢失的顺序来查。

Read more »

RaiDrive 是一款将各种云存储服务“映射”为本地磁盘驱动器的工具,让你像操作本地硬盘一样访问网盘里的文件。它本质上创建一个虚拟磁盘,把远程存储挂载到 Windows 文件系统,适合需要统一管理多种云服务、简化文件访问的场景。


1.支持的云存储类型

常见支持服务包括(根据 RaiDrive 版本可能更新):

Read more »

1.容器内加载source .env

满足几个条件:

  • .env 文件必须存在于容器内
  • COPY 进镜像
  • 或通过 volume 挂载

方式A:构建时复制进镜像

Read more »

问题

容器构建中tzdata 在安装时的交互式时区选择界面。

Configuring tzdata ------------------ Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located. 1. Africa 4. Arctic 7. Australia 10. Pacific 2. America 5. Asia 8. Europe 11. Etc 3. Antarctica 6. Atlantic 9. Indian 12. Legacy apt 默认自动选择

解决

Read more »

python3.12名字

  • ubuntu22.04
python3.12/noble-updates,noble-security,now 3.12.3-1ubuntu0.11 arm64 [installed,automatic]
  Interactive high-level object-oriented language (version 3.12)

python3.12-dbg/noble-updates,noble-security 3.12.3-1ubuntu0.11 arm64
  Debug Build of the Python Interpreter (version 3.12)

python3.12-dev/noble-updates,noble-security,now 3.12.3-1ubuntu0.11 arm64 [installed,automatic]
  Header files and a static library for Python (v3.12)

python3.12-doc/noble-updates,noble-security 3.12.3-1ubuntu0.11 all
  Documentation for the high-level object-oriented language Python (v3.12)

python3.12-examples/noble-updates,noble-security 3.12.3-1ubuntu0.11 all
  Examples for the Python language (v3.12)

python3.12-full/noble-updates,noble-security 3.12.3-1ubuntu0.11 arm64
  Python Interpreter with complete class library (version 3.12)

python3.12-minimal/noble-updates,noble-security,now 3.12.3-1ubuntu0.11 arm64 [installed,automatic]
  Minimal subset of the Python language (version 3.12)

python3.12-nopie/noble-updates,noble-security 3.12.3-1ubuntu0.11 arm64
  Python interpreter linked without PIE (version 3.12)

python3.12-venv/noble-updates,noble-security 3.12.3-1ubuntu0.11 arm64
  Interactive high-level object-oriented language (pyvenv binary, version 3.12)

Read more »

在 Nginx 里,directio 不需要额外模块,而 AIO(异步 IO)需要在编译时启用 file AIO

    1. 系统有 AIO 能力
    1. nginx 编译时打开 --with-file-aio

1.底层原理

Read more »

下载场景优化:目标是让数据尽量走“内核直通”路径,而不是在用户态反复搬运。


一、核心优化思路

下载请求通常特点:

Read more »
0%