“searchd”显示“FATAL:bind()在0.0.0.0上失败:地址已在使用中”

时间:2012-07-16 13:06:47

标签: linux port bind sphinx

当我尝试命令searchd时,它会显示:

using config file '/usr/local/etc/sphinx.conf'...
WARNING: compat_sphinxql_magics=1 is deprecated; please update your application and config
listening on all interfaces, port=9312
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
bind() failed on 0.0.0.0, retrying...
FATAL: bind() failed on 0.0.0.0: Address already in use

当我netstat -nlp时,该端口已经有searchd

  • 冲突?
  • 我该怎么办?

2 个答案:

答案 0 :(得分:5)

  

当我〜#netstat -nlp时,该端口已经有“searchd”。

所以,如果你已经有搜索运行,你为什么要尝试另一个?

如果你确实想要运行两个实例(为什么?),那么你应该安排它们在不同的端口上 - 每个实例都需要一个单独的配置文件。

答案 1 :(得分:0)

可能是您没有权限或直接访问地址0.0.0.0:9312,或者它已被其他进程使用。

尝试将sphinx searchd配置listen选项更改为其他地址,或确保该地址可用。