盘点
盘点
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桌面版与服务器版的默认服务差异大:先按环境定位(办公终端/服务器)确定清单,逐机核对执行。