background picture of the home page

systemd之进程分析

ExecStop=/bin/kill -s TERM $MAINPID和ExecStop=/bin/kill -s QUIT $MAINPID命令的区别 它们向进程发送的 信号类型不同,而不同的信号会导致程序采取 不同的退出行为

thumbnail of the cover of the post

redis单机版安装

1、debian安装 查看是否安装了redis apt list --installed |grep redis # 或者 dpkg -l |grep redis 查看系统自带包的版本 apt-cache madison redis # 或者 apt list redis apt-cac

thumbnail of the cover of the post

ssh添加放行ip

# 查看22端口号监听的IP地址 root@Tower:~# ss -tlunp |grep 22 |grep sshd tcp LISTEN 0 128 100.96.210.210:22 0.0.0.0:*

thumbnail of the cover of the post

zerotier moon服务器配置

1、搭建moon中转服务器 在moon服务器下载zerotier,进入目录 cd /var/lib/zerotier-one/ 2、生成moon.json文件 $ sudo zerotier-idtool initmoon identity.public >> moon.json 3、编辑参数 vi

thumbnail of the cover of the post

systemd与daemonize的管理权之争

Redis配置daemonize yes,导致Service反复重启 问题原因: service 配置项误设为Type=forking(适配守护进程),与daemonize no冲突 问题解析: 在Redis的默认配置文件(redis.conf)中,关于daemonize参数有明确注释,这也是理解问

thumbnail of the cover of the post

systemd VS cgroupfs

一、基本概念 cgroup(Control Groups) 是 Linux 内核用于限制、记录和隔离进程资源使用(CPU、内存、IO、网络等)的机制。 目前主要有两种管理方式: cgroupfs :直接使用

thumbnail of the cover of the post

Kubernetes 对接 Harbor 仓库:从外部拉取镜像到内部完整配置指南

一、背景 当前总是会遇到拉取镜像失败,明明k8s 集群已经创建好了,镜像也放好了就是拉取不了! 在现代云原生架构中,Harbor 作为企业级私有镜像仓库,已成为 Kubernetes 集群不可或缺的一部分。本文将带你深入理解 Kubernetes 如何对接 Harbor 仓库,并详细讲解 拉取外部镜

thumbnail of the cover of the post

网络链路诊断工具mtr和pathping

mtr命令 mtr 是一个强大的网络诊断工具,它的名字是 My Traceroute 的缩写。它结合了 ping 和 traceroute 两个经典命令的功能,能够实时地、持续地显示数据包从你的计算机到目标主机所经过的网络路径,并提供每一段路径的延迟、丢包等详细统计信息。 🧰 一、mtr 的核心功

thumbnail of the cover of the post

Prometheus安装

prometheus是由谷歌研发的一款开源的监控软件,它通过安装在远程机器上的exporter,通过HTTP协议从远程的机器收集数据并存储在本地的时序数据库上。 中文文档 Prometheus https://prometheus.io/docs/introduction/overview/ 网站:

thumbnail of the cover of the post

windows微软输入法无法显示中文

有时候会发现微软自带的中文输入无法显示候选栏,只能打出带下划线的字母。这时重启资源管理器就可以解决该问题。 快捷键 win+X+R 打开任务管理器,选择windows资源管理器右击重新启动。

thumbnail of the cover of the post

磁盘扩容

香橙派扩容以及剩余分区分配 未分区之前: root@orangepiwin:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT mmcblk0 179:0 0 14.9G 0 disk |-mmcblk0p1 179:1

thumbnail of the cover of the post

Kubernetes Pod 挂载 Volume 全面指南:从 emptyDir 到 NFS 动态卷

在 Kubernetes 中,Pod 本身是无状态的,容器一旦重启或被调度到新节点,原有数据就会丢失。为了保证数据的持久化和共享,K8s 提供了 Volume 机制。 Volume 的类型非常多,但在日常实践中,最常用的就是几类:emptyDir、hostPath、本地 PV、NFS 静态 PV、以

thumbnail of the cover of the post

limit.conf配置文件解析

Linux资源限制配置文件是/etc/security/limits.conf。限制用户可使用的资源数量对系统的稳定性非常重要。您可以通过调整资源限制数量改进系统性能。limits.conf文件如下所示: # /etc/security/limits.conf # #This file sets t

thumbnail of the cover of the post

在k8s部署kingbase单节点

本次部署使用kuboard的方式进行部署安装 deployment以及service配置的yaml文件 --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: kingbase-single-test-pvc namesp

thumbnail of the cover of the post

Nginx高并发调优

使用场景及前置条件 应用场景:高并发 Web 服务、CDN 边缘节点、API 网关、反向代理。 前置条件:Nginx 1.15+、Linux kernel 4.18+、root 权限、pressure test 工具(wrk/ab/vegeta)。 性能目标:单机 10 万+ 并发连接、100 万+

thumbnail of the cover of the post

ifconfig VS ip 命令

很多运维遇到过这个情景,想看服务器的ip地址时,按照教程的方法输入ifconfig,结果提示:-bash: ifconfig: 未找到命令。 在 Ubuntu 18.04+、CentOS 7+、Fedora 22+ 等较新的 Linux 发行版中,ifconfig 命令已被 ip 命令替代,其中一个

thumbnail of the cover of the post

Harbor 高可用部署

1、通过helm部署高可用harbor 这个是官方推荐的部署方式,架构模式如下图,使用外部的postgresql数据库集群,redis集群和分布式存储 1.1、helm安装高可用harbor 1.1.1、 环境配置

thumbnail of the cover of the post

minio使用

此时默认已经创建好了minio 创建存储 在 MinIO(以及所有兼容 S3 的对象存储系统)中,桶(Bucket) 是最顶层的逻辑存储单元,可以理解为一个“命名空间”或“大文件夹”,它是所有对象(文件)的容器。 MinIO 不存在真正的目录结构,而是通过对象 key 的前缀来模拟目录层级。 我们可

thumbnail of the cover of the post

非法字符检测工具

我们再复制粘贴的时候可能会遇到一些肉眼不可见的非法字符,比如所有空格必须是 标准空格(ASCII 32),不能是 (Unicode 160)。 这时我们需要用字符检测工具查看字符情况。可以将命令粘贴到 https://www.soscisurvey.de/tools/view-chars.php 这

thumbnail of the cover of the post

docker系列----minio安装

minio从2025-05之后的版本已经移除了控制台的功能,所以我们拉取镜像选择最后带控制台的的版本 docker pull minio/minio:RELEASE.2025-04-22T22-12-26Z # 或者 docker pull minio/minio:RELEASE.2025-04-2

thumbnail of the cover of the post

画图工具-FossFlow

FossFLOW 是一款功能强大的、开源的渐进式 Web 应用(PWA),专为创建精美的等距图表而设计。它基于 React 和 Isoflow(现已 fork 并以 fossflow 名称发布到 NPM)库构建,完全在浏览器中运行,并支持离线使用。 项目地址:https://github.com/s

thumbnail of the cover of the post

Docker容器管理工具-DockMon

DockMon 是一个全面的 Docker 容器监控和管理平台,具有实时监控、智能自动重启、多渠道告警和完整的事件日志记录功能。 项目地址: https://github.com/darthnorse/dockmon 特点: 多主机监控 - 监控无限数量的 Docker 主机(本地和远程) 智能自动

thumbnail of the cover of the post

在windows主机上离线安装mysql8

先去官网上下载mysql8的离线安装包 下载地址:https://dev.mysql.com/downloads/mysql/ 归档版本:https://downloads.mysql.com/archives/community/ 我们选择community server下载,版本此次选择mysq

thumbnail of the cover of the post

mysql8 建库并授权

创建一个新的用户和数据库 由于mysql8的机制不允许直接使用root用户 # 先用root用户创建一个aquarium数据库 CREATE DATABASE `aquarium` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; #

thumbnail of the cover of the post

kingbase的数据库导入导出

数据导出 我们使用系统自带的导出工具sys_dump进行导出 命令详解 sys_dump -h localhost -p 54321 -U system -d slw -n slw -f "D:\slw_full.sql" -O -x --inserts -c --column-inserts -v

thumbnail of the cover of the post

Nginx配置性能优化

worker_processes(工作进程数) 该参数决定了 Nginx 启动多少个工作进程来处理请求。Nginx 采用事件驱动模型,单个worker进程效率高。将进程数匹配核心数,可以避免进程间的CPU竞争和频繁的上下文切换。 worker_processes auto; nginx会自动检测服务

thumbnail of the cover of the post

helm使用

官网手册https://helm.sh/zh/docs/intro/quickstart/ 先决条件: 一个 Kubernetes 集群 确定你安装版本的安全配置 安装和配置Helm helm安装 安装手册https://helm.sh/zh/docs/intro/install/

thumbnail of the cover of the post

nginx配置websocket长连接

nginx默认等待连接的超时时间为60s,我们可以通过修改下面参数来延长连接时间proxy_connect_timeout; 下面是具体配置中 http { server { location /club/websocket { root html

thumbnail of the cover of the post

Nginx配置静态资源配置

通过nginx实现使用浏览器对不同类型的资源访问,如html文件、图片文件和txt文本文件。 1、修改全局配置 将worker进程的用户修改为nobody 将worker进程数量修改为4 2、网站静态资源访问 通过域名www.test.com,可访问到nginx服务中指定的主页页

thumbnail of the cover of the post

Nginx配置反向代理token过不去(不转发下划线)

错误原因: nginx在进行请求转发时默认会忽略请求头参数中的下划线,而后端鉴权时需要从请求头中获取access_token进行鉴权,被忽略后实际传给后端的请求头参数为accesstoken,导致后端验证权限时无法获取到token,所有的请求都会报403无权限访问 解决办法: nginx提供了一个参

thumbnail of the cover of the post

Nginx安装

1、常用版本: [Nginx开源版]: http://nginx.org/ [Nginx开源中文版]:https://nginx.p2hp.com/index.html [Nginx]: https://www.nginx.com/ [Openresty]: http://openresty.org

thumbnail of the cover of the post

docker设置网络代理

pull拉取镜像时设置代理 `docker pull`命令是由 dockerd 守护进程执行。而 dockerd 守护进程是由 systemd 管理因此,如果需要在执行 `docker pull`命令时使用 HTTP/HTTPS 代理,需要通过 systemd 配置。 - 为 dockerd 创建配

thumbnail of the cover of the post

在Linux检查X86-64 CPU微架构版本

X86架构的CPU主要是Intel和AMD开发和制造,目前已经有了40多年的历史(X86于1978年6月8日发布)。X86的64位版最先在1999年由AMD开发,一般被简写为X64、AMD64、X86_64、X86-64;X86-64也有20多年的历史了,这数十年间,CPU经过了数不清的技术创新和迭

thumbnail of the cover of the post

cri-dockerd的安装与使用

使用 cri-dockerd 适配器来将 Docker Engine 与 Kubernetes 集成。 安装docker engine 此处不再详细介绍安装Docker Engine,在每个k8s节点上,遵循安装 Docker Engine

thumbnail of the cover of the post

docker逆向工程

在有些时候我们可能遇到一些正在运行容器没有记录启动命令的脚本或者没有对应的docker compose 文件。我们此时需要工具来逆向生成相关运行命令。 使用 runlike 逆向工程 安装runlike # pip安装 dnf install python3-pip pip3 install run

thumbnail of the cover of the post

kylinV10SP3 VS kylinV11

1、系统版本与内核 # kylinV10 [root@kylin10SP301 ~]# cat /etc/os-release NAME="Kylin Linux Advanced Server" VERSION="V10 (Halberd)" ID="kylin" VERSION_ID="V10

thumbnail of the cover of the post

【银河麒麟操作系统 V10常用基础命令】

银河麒麟kylinV10系统常用版本信息命令如下 查看系统版本命令 nkvers 查看系统信息命令 cat /etc/os-release 查看系统内核版本 cat /etc/kylin-release 查看当前系统激活状态 kylin_activation_check 查看授权到期时间 kylin

thumbnail of the cover of the post

删除yum/dnf软件源

在使用 DNF 包管理器时,可能需要删除某些不再使用的软件源。以下是通过 dnf config-manager 删除软件源的具体步骤。 步骤 1:列出当前的软件源 首先,查看系统中已配置的软件源: dnf repolist

thumbnail of the cover of the post

containerd的安装与使用

containerd是从docker项目中剥离出来的一个容器运行时、几乎囊括了容器管理的所有功能,并且containerd内置了CRI插件K8S的kubelet组件可以直接调用containerd,相较于docker容器运行时要精简很多 OCI(Container Runtime Interface

thumbnail of the cover of the post

配置 Docker 的 cgroup driver 为 systemd

1、为什么要修改 Docker 的 cgourp driver? 1.1、什么是 cgroups? cgroups(Control Groups)是 Linux 内核提供的一种机制。它可以限制、记录任务组所使用的物理资源。它是内核附加在程序上的 hook,使程序运行时对资源的调度触发相应的钩子,达到

thumbnail of the cover of the post

Linux服务器(内网环境)通过笔记本连接互联网

在实际生产环境中我们可能会遇到linux服务器只有内网而无法联网的情况,此时我们可以通过我们的笔记本电脑使服务器接入互联网。 前置条件: Linux服务器 内网ip 192.168.2.20 笔记本电脑: 有线网卡设置静态ip 192.168.2.11 无线网卡:连接wifi或者热点网络 网络拓扑:

thumbnail of the cover of the post

kylin麒麟系统原生健康检查和诊断工具

麒麟自带了一款系统运维辅助工具——kylin-sysassist,只需几条命令,就能完成从信息采集到健康体检的全流程 查看系统版本和内核版本 [root@kylin-2 ~]# cat /etc/os-release NAME="Kylin Linux Advanced Server" VERSI

thumbnail of the cover of the post

k8s使用nfs作为外部存储(一)

前提条件: k8s集群(已搭建好) nfs服务器(已搭建好) nfs客户端(pod可调度节点作为客户端,已搭建好) Kubernetes 推荐使用 PersistentVolume (PV) 和 PersistentVolumeClaim (PVC) 来管理存储。 静态PV配置 该方法需要管理员手动

thumbnail of the cover of the post

Linux查找大文件

在Linux系统中,查找大文件的位置和大小可以通过几个常用命令组合来实现,以下是一些实用方法 1. 查找特定目录下大于指定大小的文件 # 查找/目录下所有大于10MB的文件  find / -type f -size +10M -exec ls -lh {} \;   # 查找当前目录下大于10M的

thumbnail of the cover of the post

Linux之yum命令解析

yum(Yellowdog Updater Modified)是用于管理 RPM 软件包的工具,自动处理依赖关系,简化软件安装、更新和删除。 常用命令 1、安装软件包 yum install <包名>                  # 安装指定软件包 yum install <包名1> <包名2

thumbnail of the cover of the post

Linux进程流量监控查看工具Nethogs

NetHogs是一个小的"net top"工具。它没有像大多数工具一样按协议或每个子网划分流量,而是按进程对带宽进行分组。 Nethogs会按每个进程实时进出计算机的流量排序,很方便查看当前流量带宽使用最多的进程 Github仓库地址:https://github.com/raboof/nethog

thumbnail of the cover of the post