Linux进程状态解析 之 R、S、D、T、Z、X 2026-08-30Posted inLinux R (TASK_RUNNING),可执行状态 只有在该状态的进程才可能在CPU上运行。而同一时刻可能有多个进程处于可执行状态,这些进程的task_struct结构(进程控制块)被放入对应CPU的可执行队列中(一个进程最多只能出现在一个CPU的可执行队列中)。进程调度器的任务就是从各个CPU的可执行队…
iptables与docker网桥问题分析 2026-08-29Posted inDocker, Linux 1、计数器归零 + 差值对比 【说明】:不加任何规则,只看哪条规则的命中数涨了,哪条 REJECT/DROP 的 pkts 从 0 变成非 0,就是它的问题 #归零全表计数器 iptables -Z #复现(在容器里发一次请求)docker exec <ID> curl -s -m 3 htt…
KylinV10/: 麒麟gcc7.3.0升级到gcc10.3.1 2026-07-14Posted inLinux, 欧拉(OS), 统信(OS), 麒麟(OS) 需求点: 1、Gnu官方没有gcc10.3.1这种版本源码,只有gcc10.3.0;2、Gcc10.3.1是通过10.3.1+Patch而来的,一般是由麒麟/欧拉/统信等厂商打的patch;3、Patch的版本也可能不止一个,比如有gcc-10.3.1-65、gcc-10.3.1-66等,65/66…
Ubuntu/Debian: 彻底关闭自动更新(含驱动更新) 2026-05-28Posted inLinux systemctl stop apt-daily.servicesystemctl stop apt-daily.timer systemctl stop apt-daily-upgrade.servicesystemctl stop apt-daily-upgrade.timer systemct…
Ubuntu:20.04无痛升级glibc2.31到2.34 2026-05-26Posted inLinux 几个好处: 1、无需手动编译2、无需重启服务器3、无需升级内核4、无需重装系统(升级到22.04) . 开始: vi /etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ jammy main apt updateapt instal…
Docker:在Debian/Ubuntu上快速安装docker-ce 2026-02-20Posted inLinuxTags: docker, docker-ce #1、安装依赖模快apt-get install apt-transport-https ca-certificates curl gnupg2 #2、添加源密钥文件#Debian12curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/deb…
Linux:Debian安装nginx+rtmp直播服务端 2026-02-18Posted inLinux 一句话安装完: apt install -y nginx libnginx-mod-rtmp 一段话设置完: #在nginx.conf的最后面添加:rtmp { server { listen 9022; application live { live on; } }} . . .
Docker:在Ubuntu上安装Docker-ce指定版本 2026-01-28Posted inDocker 说明: 此方案同时适用于:centos、ubuntu、debian、fedora、raspbian、rhel、sles,只需要修订相关的/OSNAME目录即可。 . 添加以下源与KEY: install -m 0755 -d /etc/apt/keyringscurl -fsSL https://d…
Linux:网页版SSH: ttyd 2026-01-02Posted inLinux 效果如下: 使用方法: 纯 IPv6 LXC 容器连接 SSH,需要本地网络支持 IPv6,或者连接支持 IPv6 的 VPS 连接通后使用。 ssh root@2400:xxx:xxx:xxx::xxxssh root@2400:xxx:xxx:xxx::xxx -p5422 另外,可以通过 tt…
Docker:监控平台 Prometheus + Grafana 2026-01-02Posted inDocker, 运维 Grafana,Prometheus 和 Node Exporter 是一套流行的开源监控工具,用于收集,存储,查询系统和应用程序的各种使用率,并可视化显示。每个工具都有特定的功能: Grafana:是一款可视化程序,提供开源版和企业版。 Grafana 不从客户端收集任何数据,也不存储,它的功能是…