在 CentOS 中,“spool” 通常指 打印队列(CUPS) 或 邮件/任务 spool 目录。常见需求是 禁用打印 spool(CUPS)。下面分情况说明。
systemctl stop cups
systemctl disable cups
查看状态:
systemctl status cups
systemctl is-enabled cups
# 应为 disabled
编辑:
/etc/cups/cupsd.conf
注释或删除:
Listen localhost:631
然后:
systemctl restart cups
yum remove cups
systemctl stop postfix
systemctl disable postfix
或:
systemctl stop sendmail
systemctl disable sendmail
/var/spool/cups
/var/spool/mail
/var/spool/clientmqueue
⚠️ 不要直接删除正在使用的 spool 文件
可挂为只读(不推荐生产环境):
mount -o remount,ro /var/spool
如果你能说明:
我可以给你更精确的操作方式。