首页 > 解决方案 > 找不到命令“索引器”

问题描述

在搞砸了 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已经造成了一些损害。无论哪种情况,我都一无所知,并感谢您的提示。

标签: linux

解决方案


好的,我通过remving解决了问题sphinix,然后重新安装:

apt remove  sphinxsearch
apt install sphinxsearch

推荐阅读