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

时间:2022-05-17 15:52:08

环境:Centos 6.4

samba版本:3.6.23

启动smb服务后,/var/log/messages日志出现如下报警:about:Unable to connect to CUPS server localhost:631 - Connection refused

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

从问题自身看,访问631端口被拒绝

第一、查看631端口用途

#cat /etc/services |grep 631

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

结论:631为打印机端口

第二、关闭smb调用打印机端口

修改smb配置参数

# cp /etc/samba/smb.conf /etc/samba/smb.confbak
编辑smb.conf文件,加入以下参数:

load printers = no
printing = bsd
printcap name = /dev/null

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

第三、重启smb服务

# /etc/init.d/smb restart

第四、回滚日志

#logrotate -f /etc/logrotate.conf

第五、观察验证

# tailf /var/log/messages

连续观察2-3个13分钟间隔,发现日志无异常