当我尝试命令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
。
答案 0 :(得分:5)
当我〜#netstat -nlp时,该端口已经有“searchd”。
所以,如果你已经有搜索运行,你为什么要尝试另一个?
如果你确实想要运行两个实例(为什么?),那么你应该安排它们在不同的端口上 - 每个实例都需要一个单独的配置文件。
答案 1 :(得分:0)
可能是您没有权限或直接访问地址0.0.0.0:9312
,或者它已被其他进程使用。
尝试将sphinx searchd
配置listen
选项更改为其他地址,或确保该地址可用。