Sphinx警告预加载:打开失败 [英] Sphinx warning preload: failed to open
问题描述
我安装了狮身人面像搜索服务. 为了创建索引,我使用下一条命令:
I installed sphinx search service. For creating indexes I use next command:
sudo searchd -c/etc/sphinxsearch/sphinx.conf
sudo searchd -c /etc/sphinxsearch/sphinx.conf
在终端收到警告消息后:
After get warning message in terminal:
使用配置文件'/etc/sphinxsearch/sphinx.conf'...正在侦听 127.0.0.1:3322预缓存索引"medicalfacilities"警告:索引"medicalfacilities":preload:打开失败 /var/data/sphinx/medicalfacilities.sph:没有这样的文件或目录;不是 服务预缓存索引"article_index"
using config file '/etc/sphinxsearch/sphinx.conf'... listening on 127.0.0.1:3322 precaching index 'medicalfacilities' WARNING: index 'medicalfacilities': preload: failed to open /var/data/sphinx/medicalfacilities.sph: No such file or directory; NOT SERVING precaching index 'article_index'
还试图阻止狮身人面像:
Also tried to stop sphinx:
searchd --stop
searchd --stop
并执行命令:
索引器--config/etc/sphinxsearch/sphinx.conf --rotate --all
indexer --config /etc/sphinxsearch/sphinx.conf --rotate --all
它给了我消息:
使用配置文件'/etc/sphinxsearch/sphinx.conf'...索引索引 医疗设施" ...致命:无法打开 /var/data/sphinx/medicalfacilities.tmp.spl:没有这样的文件或目录, 不会索引.尝试--rotate选项.
using config file '/etc/sphinxsearch/sphinx.conf'... indexing index 'medicalfacilities'... FATAL: failed to open /var/data/sphinx/medicalfacilities.tmp.spl: No such file or directory, will not index. Try --rotate option.
请解释一下,为什么sphinx不创建索引文件?如何解决?
Please, explain me, why sphinx does not create indexes file? How fix?
推荐答案
无法打开/var/data/sphinx/medicalfacilities.tmp.spl:没有此类文件或目录
failed to open /var/data/sphinx/medicalfacilities.tmp.spl: No such file or directory
建议文件夹/var/data/sphinx/
不存在.创建它:)
suggests that the folder /var/data/sphinx/
does not exist. Create it :)
这篇关于Sphinx警告预加载:打开失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!