首页/系统/信创系统运维速查/系统服务最小化核查
安全加固65 条

系统服务最小化核查

等保要点是最小安装、最小服务:启用列表与依赖关系都要收敛;停用前先查依赖,用 systemctl disable --now 一次完成禁自启与停止。

信创系统运维速查系统更新于 2026-10-12

盘点

盘点
systemctl list-unit-files --type=service --state=enabled | head -60
systemctl list-unit-files --type=service | grep -E 'cups|avahi|bluetooth|rpcbind|nfs'
systemctl --failed

停用(确认依赖后)

停用(确认依赖后)
systemctl list-dependencies --reverse rpcbind | head   # 先看依赖方
systemctl disable --now cups
systemctl disable --now bluetooth
systemctl disable --now rpcbind
systemctl is-enabled rpcbind; systemctl is-active rpcbind
桌面版与服务器版的默认服务差异大:先按环境定位(办公终端/服务器)确定清单,逐机核对执行。

易错点

  • 先 list-dependencies --reverse:停 rpcbind 会让 NFS 客户端挂载失败
  • disable 与 stop 是两件事,验证要用 is-enabled 与 is-active 两个都查

数据来源与参考

  • 等保 2.0 主机安全(最小安装要求)
  • man 1 systemctl
​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌