事实上我正在尝试开始我的卡尔图拉服务。默认的“sphinx”与 Kaltura 一起出现,但已损坏并被卸载。然后我安装了干净的专用“Sphinx”(源版本来自这里) 在 Kaltura 之外。我在 进行设置/opt/sphinx/
。设置完成后,我运行:
~ # sudo /opt/kaltura/bin/sphinx/searchd
显示如下:
Sphinx 2.0.2-dev (r2823)
Copyright (c) 2001-2011, Andrew Aksyonoff
Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/usr/local/etc/sphinx.conf'...
listening on all interfaces, port=9312
listening on all interfaces, port=9306
precaching index 'test1'
WARNING: index 'test1': preload: failed to open /var/data/test1.sph: No such file or directory; NOT SERVING
precaching index 'test1stemmed'
WARNING: index 'test1stemmed': preload: failed to open /var/data/test1stemmed.sph: No such file or directory; NOT SERVING
WARNING: multiple addresses found for 'localhost', using the first one (ip=127.0.0.1)
precaching index 'rt'
WARNING: last message repeated 1 times
WARNING: index 'rt': preload: failed to open /var/data/rt.lock: No such file or directory; NOT SERVING
precached 3 indexes in 0.000 sec
这些是什么意思?我真的不明白为什么。
答案1
首先运行 sudo indexer --all 它将创建索引文件然后运行 searchd
答案2
它说没有这样的文件或目录:
/var/data/test1.sph
/var/data/test1stemmed.sph
/var/data/rt.lock
我认为这是在/usr/local/etc/sphinx.conf
是不是有什么东西从原来的地方消失了?你说这是新安装的,也许数据目录指向了其他地方,需要配置?