<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>操作系统 - 分类 - cfanzp学习笔记</title>
    <link>https://cfanzp008.github.io/categories/os/</link>
    <description>操作系统 - 分类 - cfanzp学习笔记</description>
    <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>cfan.zp@qq.com (cfanzp)</managingEditor>
      <webMaster>cfan.zp@qq.com (cfanzp)</webMaster><lastBuildDate>Tue, 07 Apr 2026 17:07:51 &#43;0800</lastBuildDate><atom:link href="https://cfanzp008.github.io/categories/os/" rel="self" type="application/rss+xml" /><item>
  <title>小内存腾讯云服务器优化：关闭安全加固、云监控与自动化助手</title>
  <link>https://cfanzp008.github.io/tencent-cloud-server-optimization/</link>
  <pubDate>Tue, 07 Apr 2026 17:07:51 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/tencent-cloud-server-optimization/</guid>
  <description><![CDATA[小内存腾讯云服务器优化：关闭安全加固、云监控与自动化助手 背景简介 腾讯云服务器默认会安装多种监控和安全组件，包括云监控（Cloud Monitor）、云镜（Security Agent）、安全加固和自动化助手（TAT）等。这些组件在后台持续运行，会占用一定的系统资源（CPU、内存）。
对于小内存服务器（如 1GB 或 2GB 内存）来说，这些后台服务可能会影响业务程序的可用内存，甚至导致 OOM（内存耗尽）问题。
优化目标：
释放内存资源 减少后台进程占用 提升服务器响应速度 降低资源消耗 需要关闭的组件 组件名称 功能 占用资源 云监控（YunAgent） 监控服务器性能指标 约 50-100MB 内存 云镜（Security Agent） 安全防护和病毒扫描 约 30-80MB 内存 安全加固（Security hardening） 系统安全加固 约 20-50MB 内存 自动化助手（TAT） 远程运维自动化 约 10-30MB 内存 思维导图：操作流程总览 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 graph TD A[开始优化] --&gt; B{确认权限} B --&gt;|需要sudo| C[获取root权限] B --&gt;|已是root| D[开始操作] C --&gt; D D --&gt; E[1.]]></description>
</item>
<item>
  <title>Linux Swap 分区大小修改指南</title>
  <link>https://cfanzp008.github.io/linux-swap-resize-guide/</link>
  <pubDate>Tue, 07 Apr 2026 16:39:35 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/linux-swap-resize-guide/</guid>
  <description><![CDATA[Linux Swap 分区大小修改指南 什么是 Swap Swap（交换空间）是 Linux 系统的一种虚拟内存技术。当物理内存不足时，系统会将不活跃的内存页面移动到 Swap 空间中，从而释放物理内存供活跃进程使用。
Swap 的作用：
扩展可用内存容量 防止内存耗尽导致系统崩溃 支持内存休眠（suspend to disk） 在内存压力时提供缓冲 修改 Swap 大小的三种方法 方法一：使用 swapfile（推荐） 这种方法最灵活，不需要重新分区。
步骤 1：查看当前 Swap 状态 1 2 3 4 5 6 7 8 # 查看当前 Swap 使用情况 free -h # 查看 Swap 文件位置 swapon --show # 查看磁盘空间 df -h 步骤 2：禁用现有 Swap 1 2 3 4 5 # 关闭 Swap sudo swapoff -a # 如果有多个 Swap，指定关闭特定文件 sudo swapoff /swapfile 注意： 关闭 Swap 前确保有足够的物理内存，否则可能导致程序崩溃。最好在系统负载低时操作。]]></description>
</item>
<item>
  <title>linux消息队列的使用</title>
  <link>https://cfanzp008.github.io/linux_queue/</link>
  <pubDate>Mon, 24 Jul 2023 22:11:49 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/linux_queue/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>操作系统基础</title>
  <link>https://cfanzp008.github.io/os-question/</link>
  <pubDate>Sat, 01 Apr 2023 16:42:07 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/os-question/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>Windows Server 2022安装体验</title>
  <link>https://cfanzp008.github.io/windows-server-2022/</link>
  <pubDate>Thu, 12 Jan 2023 17:56:12 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/windows-server-2022/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>Windows如何写一个脚本定时删除日志？</title>
  <link>https://cfanzp008.github.io/windows-del-log/</link>
  <pubDate>Wed, 07 Dec 2022 14:27:50 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/windows-del-log/</guid>
  <description><![CDATA[]]></description>
</item>
<item>
  <title>linux查看打开文件情况</title>
  <link>https://cfanzp008.github.io/lsof/</link>
  <pubDate>Fri, 19 Aug 2022 15:57:01 &#43;0800</pubDate>
  <author>作者</author>
  <guid>https://cfanzp008.github.io/lsof/</guid>
  <description><![CDATA[linux查看打开文件情况 查看进程skynet(config.login)的pid 1 2 3 4 5 [root@dev127 login]# ps -ef | grep login root 657 1 0 6月20 ? 00:00:49 /usr/lib/systemd/systemd-logind root 113262 1 8 15:27 ? 00:02:19 /data/myb/sh/../skynet/skynet /data/myb/sh/login/config.login root 113983 107342 0 15:42 pts/4 00:00:02 tail login.20220819.log -f root 114702 112029 0 15:55 pts/2 00:00:00 grep --color=auto login 查看进程能打开的最大文件数目 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [root@dev127 login]# cat /proc/113262/limits Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 8388608 unlimited bytes Max core file size unlimited unlimited bytes Max resident set unlimited unlimited bytes Max processes 26047 26047 processes Max open files 1024 4096 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 26047 26047 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us [root@dev127 login]# 参考链接 https://blog.]]></description>
</item>
</channel>
</rss>
