Unable to connect to CUPS server localhost:631 - Connection refused

检查/var/log/message日志发现主机,断断续续持续报警
Mar 29 07:18:49 localhost smbd[240822]: [2020/03/29 07:18:49.095147,  0] printing/print_cups.c:151(cups_connect)
Mar 29 07:18:49 localhost smbd[240822]:   Unable to connect to CUPS server localhost:631 - Connection refused
Mar 29 07:18:49 localhost smbd[17495]: [2020/03/29 07:18:49.108507,  0] printing/print_cups.c:528(cups_async_callback)
Mar 29 07:18:49 localhost smbd[17495]:   failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
CUPS 是 samba预设安装起来就会启用 Printer 的功能,这台主机不需要Printer Server功能,所以调整一下Samba配置即可
vim /etc/samba/smb.conf
load printers = no
printing = bsd
 
# service smb restart

你可能感兴趣的:(Unable to connect to CUPS server localhost:631 - Connection refused)