linux - 找不到命令“索引器”
问题描述
在搞砸了 maticore 搜索之后,我在 Ubuntu 18.04 上重新安装了sphinixsearch 。但现在我无法运行索引:
# indexer --all
Command 'indexer' not found, but can be installed with:
apt install sphinxsearch
但是重新安装后,该命令也无法运行。
但是我可以看到该服务正在运行:
# systemctl status sphinxsearch.service
● sphinxsearch.service - LSB: Fast standalone full-text SQL search engine
Loaded: loaded (/etc/init.d/sphinxsearch; generated)
Active: active (exited) since Fri 2021-03-05 13:57:48 CET; 7min ago
Docs: man:systemd-sysv-generator(8)
Process: 15615 ExecStop=/etc/init.d/sphinxsearch stop (code=exited, status=0/SUCCESS)
Process: 15621 ExecStart=/etc/init.d/sphinxsearch start (code=exited, status=0/SUCCESS)
Mar 05 13:57:48 pc5 systemd[1]: Starting LSB: Fast standalone full-text SQL search engine...
Mar 05 13:57:48 pc5 systemd[1]: Started LSB: Fast standalone full-text SQL search engine.
有趣的是,第一次安装 sphinix (在删除它并安装manticoresearch之前)我可以使用indexer
命令和 sphinix search 很好。所以我想我已经删除了一些二进制文件,
apt --purge remove sphinixsearch
或者manticoresearch
已经造成了一些损害。无论哪种情况,我都一无所知,并感谢您的提示。
解决方案
好的,我通过remving解决了问题sphinix
,然后重新安装:
apt remove sphinxsearch
apt install sphinxsearch
推荐阅读
- flutter - Flutter如何将值传递给State类
- c++ - C++ 中有没有 .get 函数的替代品?
- javascript - 动态使用 join 方法
- javascript - 如何使用 JavaScript 在 chrome 开发者控制台中检查第三方 chrome 扩展
- javascript - 为什么 jQuery blur 不工作 jQuery 的 tag-it 库?
- c# - 无法访问已处置的对象。对象名称:FileBufferingReadStream
- python - 检查输入中的数字是否不同
- php - 使用 type="number" 检索输入的值
- c++ - 如何从 C++ 中的文本文件一次读取一个字符?
- angular - @ngrx/schematics 在生成动作和减速器时失败