3

当我尝试命令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

  • 冲突?
  • 我该怎么办?
4

2 回答 2

5

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

因此,如果您已经运行了 searchd,为什么还要尝试启动另一个呢?

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

于 2012-07-16T14:21:10.093 回答
0

可能是您没有特权或直接访问地址0.0.0.0:9312,或者它已被另一个进程使用。

尝试将 sphinxsearchd配置listen选项更改为另一个地址或确保该地址可用。

于 2012-07-16T17:00:29.197 回答