Ubuntu 斯芬克斯未显示为已安装
我一直在学习多个教程: 我一直在撞墙。我已经完成了每一步,但每当我通过SSH使用命令“search”时,我都会收到以下消息: “搜索”程序当前未安装。您可以通过键入以下内容进行安装: apt获取安装sphinxsearch 现在,我肯定安装了sphinxsearch。事实上,从运行indexer,我可以做任何事情:Ubuntu 斯芬克斯未显示为已安装,ubuntu,sphinx,Ubuntu,Sphinx,我一直在学习多个教程: 我一直在撞墙。我已经完成了每一步,但每当我通过SSH使用命令“search”时,我都会收到以下消息: “搜索”程序当前未安装。您可以通过键入以下内容进行安装: apt获取安装sphinxsearch 现在,我肯定安装了sphinxsearch。事实上,从运行indexer,我可以做任何事情: root@panel:/usr/bin# indexer --all Sphinx 2.2.10-id64-release (2c212e0) Copyright (c) 2001
root@panel:/usr/bin# indexer --all
Sphinx 2.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
indexing index 'videos_index'...
collected 1 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 1 docs, 148 bytes
total 0.005 sec, 25539 bytes/sec, 172.56 docs/sec
indexing index 'delta'...
collected 0 docs, 0.0 MB
total 0 docs, 0 bytes
total 0.001 sec, 0 bytes/sec, 0.00 docs/sec
total 8 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg
total 19 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
我甚至可以打开searchd:
root@panel:/usr/bin# searchd
Sphinx 2.2.10-id64-release (2c212e0)
Copyright (c) 2001-2015, Andrew Aksyonoff
Copyright (c) 2008-2015, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file '/etc/sphinxsearch/sphinx.conf'...
listening on 127.0.0.1:9312
listening on all interfaces, port=9312
precaching index 'videos_index'
precaching index 'delta'
precached 2 indexes in 0.002 sec
但是,当我尝试运行测试搜索时,我会收到以下消息:
root@panel:/usr/bin# search test
The program 'search' is currently not installed. You can install it by typing: apt-get install sphinxsearch
我做错了什么?
这是运行Ubuntu14.04和VestaCP的digitalocean droplet上的,如果安装正确,它不是
search
,而是searchd
。假设您是按照默认说明安装的,那么应该在/usr/local/sphinx/bin/
中找到守护进程
在运行它之前,您需要运行同样位于同一目录中的
索引器。新的spninx版本中已删除搜索程序。使用SphinxQL测试sphinx
请参见位于的Sphinx的新教程
免责声明:我是这篇文章的作者