当在Centos 6上安装samba共享时,导致“无法find合适的地址”

我正试图在一个centos框上共享一个目录。 我尝试了在我的Ubuntu桌面上configuration它之前尝试在Centos机器上,每一件事情都很好。 smb.conf的设置是相同的,我已经完成了smbpasswd以及将用户添加到/ etc / samba / smbusers。 当我尝试安装共享时,我收到消息“无法find合适的地址”。

我认为这可能是因为samba服务器是Centos 6,它可能是一个SELinux问题。 所以经过一点谷歌,我发现这个: http : //aaronwalrath.wordpress.com/2011/03/26/install-samba-server-on-red-hat-enterprise-linux-6scientific-linux-6/在那里提到的东西我仍然得到相同的无法find合适的地址信息。

在/var/log/samba/log.smb我有这个输出。

[2011/08/22 11:07:42.198369, 0] printing/print_cups.c:108(cups_connect) Unable to connect to CUPS server localhost:631 - Connection refused [2011/08/22 11:07:42.202031, 0] printing/print_cups.c:108(cups_connect) Unable to connect to CUPS server localhost:631 - Connection refused [2011/08/22 11:07:43.224267, 0] smbd/server.c:500(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address already in use [2011/08/22 11:07:43.224689, 0] smbd/server.c:500(smbd_open_one_socket) smbd_open_once_socket: open_socket_in: Address already in use 

我读到这是一个错误,输出并不意味着桑巴不会从这里工作: https ://bugzilla.redhat.com/show_bug.cgi?id =726936

什么可能导致这个? 有什么特别的需要在Centos 6和Centos 5中进行configuration吗? 我很确定,大部分关于Centos和Samba的信息都是在CentOS 6发布之前的。

我刚才还有这个问题。 解决此问题的方法是添加参数“仅限绑定接口=是”。 下面的示例configuration:

 interfaces = lo eth0 127.0.0.1 192.168.1.99 hosts allow = 127. 192.168.1. bind interfaces only = yes # << <<< <<<< <<<<<< 

事实certificate,Centos 6默认情况下运行iptables,并阻止该端口上的通信。 我希望这能帮助未来遇到这种事情的其他人。