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

夏期劇*_*期劇場 3 linux port sphinx bind

当我尝试该命令时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
Run Code Online (Sandbox Code Playgroud)

当我netstat -nlp,searchd那个港口已经有了.

  • 冲突?
  • 我该怎么办?

bar*_*ter 5

当我〜#netstat -nlp时,那个端口已经有了"searchd".

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

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

  • 也许只是尝试"searchd --stop"来停止正在运行的实例.没有尝试"killall searchd"杀死所有实例.然后尝试正常启动.这假设您只针对一个实例,现有实例只是一个错误. (2认同)