---
title: "安装 Manticore Search"
description: "安装 Manticore Search：易于使用的开源快速数据库用于搜索。现代、快速、轻量级、出色的全文搜索功能"
lang: zh
url: https://manticoresearch.com/zh/install-5.0.0/
translations:
  en: https://manticoresearch.com/install-5.0.0/
  ru: https://manticoresearch.com/ru/install-5.0.0/
---

# 安装 Manticore Search

安装 Manticore Search：易于使用的开源快速数据库用于搜索。现代、快速、轻量级、出色的全文搜索功能

## Manticore Search 5.0.0

### 包管理器
{{< tabs >}}
  {{< tab "APT" >}}
  ### 使用 APT 在 Debian、Ubuntu 和 Linux Mint 上安装 Manticore Search

  如果您正在升级到 Manticore 5，建议先删除旧包，因为 Manticore 5 的包结构已更改：
  ```bash
  sudo apt remove manticore*
  ```
  它不会删除您的数据或配置文件。

  安装 APT 仓库和新版本：
  ``` bash
  wget https://repo.manticoresearch.com/manticore-repo.noarch.deb
  sudo dpkg -i manticore-repo.noarch.deb
  sudo apt update
  sudo apt install manticore manticore-columnar-lib
  ```

  ### 启动 Manticore

  ``` bash
  sudo systemctl start manticore
  ```

  有关 Manticore Search 的 APT 仓库的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Installation/Debian_and_Ubuntu#Installing-Manticore-in-Debian-or-Ubuntu)。
  {{< /tab >}}

  {{< tab "YUM" >}}
  ### 使用 YUM 在 Centos、RHEL 和 Oracle Linux 上安装 Manticore Search

  如果您正在升级到 Manticore 5，建议先删除旧包，因为 Manticore 5 的包结构已更改：
  ```bash
  sudo yum remove manticore*
  ```
  它不会删除您的数据或配置文件。

  安装 YUM 仓库和新版本：
  ``` bash
  sudo yum install https://repo.manticoresearch.com/manticore-repo.noarch.rpm
  sudo yum install manticore manticore-columnar-lib
  ```

  ### 运行

  ``` bash
  sudo systemctl start manticore
  ```

  有关 Manticore Search 的 YUM 仓库的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Installation/RHEL_and_Centos#Installing-Manticore-packages-on-RedHat-and-CentOS)。
  {{< /tab >}}

  {{< tab "MacOS 的 Homebrew (x86)" >}}
  ### 使用 Homebrew 在 MacOS (Intel) 上安装 Manticore Search (版本 4.2.0)

  ``` bash
  brew install manticoresoftware/manticore/manticoresearch
  ```

  ### 运行

  ``` bash
  brew services start manticoresearch
  ```

  有关 Manticore Search 的 Homebrew 包的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Installation/MacOS#Via-Homebrew-package-manager)。
  {{< /tab >}}

  {{< tab "Docker" >}}
  ### 在 Docker 中运行 Manticore Search 仅用于试用（非生产用途）

  ``` bash
  docker run --name manticore --rm -d manticoresearch/manticore && sleep 3 && docker exec -it manticore mysql && docker stop manticore
  ```

  {{< notice "info" >}}
  注意，退出 mysql 客户端后，Manticore 容器将停止，且不会保存任何数据。
  {{< /notice >}}

  ### 在 Docker 中运行 Manticore Search 用于生产环境

  ``` bash
  docker run --name manticore -v $(pwd)/data:/var/lib/manticore -p 127.0.0.1:9306:9306 -p 127.0.0.1:9308:9308 -d manticoresearch/manticore
  ```

  将：
  * 在端口 9306 上运行 Manticore（用于 mysql 连接）
  * 在端口 9308 上运行（用于其他连接）
  * 并将 `./data/` 用作数据目录

  有关生产环境使用的更多信息，请参阅 [文档](https://github.com/manticoresoftware/docker#production-use)。
  {{< /tab >}}

{{< /tabs >}}
<hr>

### 单独的包
{{< tabs >}}
  {{< tab "Ubuntu" >}}

  {{< collapse "Ubuntu 16 Xenial" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_xenial/dists/manticore_5.0.0-220518-b4cb7da_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_xenial/dists/xenial/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb  
  ```
  {{< /collapse >}}
  {{< collapse "Ubuntu 18 Bionic" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_bionic/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_bionic/dists/bionic/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```
  {{< /collapse >}}
  {{< collapse "Ubuntu 20 Focal" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_focal/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_focal/dists/focal/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```
  {{< /collapse >}}
  {{< collapse "Ubuntu 22 Jammy" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```
  {{< /collapse >}}

  {{< /tab >}}

  {{< tab "Debian" >}}
  {{< collapse "Debian 9 Stretch" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_stretch/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_stretch/dists/stretch/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```
  {{< /collapse >}}
  {{< collapse "Debian 10 Buster" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_buster/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_buster/dists/buster/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```
  {{< /collapse >}}
  {{< collapse "Debian 11 Bullseye" >}}
  ```bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_bullseye/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_bullseye/dists/bullseye/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```
  {{< /collapse >}}
  {{< /tab >}}

  {{< tab "Centos" >}}

  {{< collapse "Centos 7" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch/dev/centos/7/manticore-5.0.0-220518-b4cb7da02.el7.x86_64.tgz https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/x86_64/manticore-columnar-lib-1.15.2_220518.b0bcafb-1.el7.centos.x86_64.rpm

  tar -xvf manticore-5.0.0-220518-b4cb7da02.el7.x86_64.tgz

  rpm -i manticore-*-4.2.1_220517.b9889b4-1.el7.centos.*.rpm manticore-columnar-lib-1.15.2_220518.b0bcafb-1.el7.centos.x86_64.rpm
  ```
  {{< /collapse >}}
  {{< collapse "Centos 8 (Stream)" >}}
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch/dev/centos/8/manticore-5.0.0-220518-b4cb7da02.el8.x86_64.tgz https://repo.manticoresearch.com/repository/manticoresearch/release/centos/8/x86_64/manticore-columnar-lib-1.15.2_220518.b0bcafb-1.el8.x86_64.rpm

  tar -xvf manticore-5.0.0-220518-b4cb7da02.el8.x86_64.tgz

  rpm -i manticore-*-4.2.1_220517.b9889b4-1.el8.centos.*.rpm manticore-columnar-lib-1.15.2_220518.b0bcafb-1.el8.centos.x86_64.rpm
  ```
  {{< /collapse >}}

  {{< /tab >}}

  {{< tab "MacOS" >}}

  ### 安装
  ``` bash
  mkdir manticore

  cd manticore

  wget https://repo.manticoresearch.com/repository/manticoresearch_macos/release/manticore-5.0.0-220518-b4cb7da02_64-main.tar.gz

  tar -xf manticore-5.0.0-220518-b4cb7da02_64-main.tar.gz

  wget https://repo.manticoresearch.com/repository/manticoresearch_macos/release/manticore-columnar-lib-1.15.2-220518-b0bcafb-osx10.14.4-x86_64.tar.gz

  tar -xf manticore-columnar-lib-1.15.2_220518-b0bcafb-osx10.14.4-x86_64.tar.gz -C usr/local
  ```

  有关在 MacOS 上安装和使用 Manticore 的更多详细信息，请参阅 [文档](https://manual.manticoresearch.com/Installation/MacOS#Installing-Manticore-on-MacOS)。

  ### 运行
  ``` bash
  LIB_MANTICORE_COLUMNAR=./usr/local/share/manticore/modules/lib_manticore_columnar.so ./usr/local/bin/searchd -c ./usr/local/etc/manticore/manticore.conf
  ./usr/local/bin/searchd -c ./usr/local/etc/manticore/manticore.conf
  ```

  {{< /tab >}}

  {{< tab "Windows" >}}

  在 Windows 上安装 Manticore：
  1. 点击以下两个下载按钮

  {{< button "Manticore Search" "https://repo.manticoresearch.com/repository/manticoresearch_windows/release/x64/manticore-5.0.0-220518-b4cb7da02-releasex64-main.zip">}}

  {{< button "Manticore Columnar Lib" "https://repo.manticoresearch.com/repository/manticoresearch_windows/release/x64/manticore-columnar-lib-1.15.2-220518-b0bcafb-x64.zip">}}

  2. 下载存档
  3. 创建一个文件夹，例如 `C:\Manticore`
  4. 将存档移动到该文件夹并从中解压文件：
     * `unzip manticore-5.0.0-220518-b4cb7da02-releasex64-main.zip`
     * `unzip manticore-columnar-lib-1.15.2_220518-b0bcafb-x64.zip`

  存档中包含一个示例配置文件 `manticore.conf.in`。
  配置文件包含占位符 `@LOGDIR@`、`@RUNDIR@` 和 `@CONFDIR@`，需要分别替换为您的：
  * 日志目录路径
  * pid 文件目录路径
  * 数据目录位置

  存档还包含空文件夹 `var/log` 和 `var/data`，如果您愿意，可以使用它们。

  要将 `searchd`（Manticore 搜索服务器）安装为 Windows 服务，请运行：

  ```bat
  C:\Manticore\bin\searchd --install --config C:\Manticore\manticore.conf.in --servicename Manticore
  ```

  有关在 Windows 上安装和使用 Manticore 的更多详细信息，请参阅 [文档](https://manual.manticoresearch.com/Installation/Windows#Installing-Manticore-in-Windows)。

  {{< /tab >}}

  {{< tab "Mint" >}}
  <h3>Linux Mint 19：</h3>

  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_bionic/dists/manticore_5.0.0-220518-b4cb7da02_amd64.tgz https://repo.manticoresearch.com/repository/manticoresearch_bionic/dists/bionic/main/binary-amd64/manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb

  tar -xvf manticore_5.0.0-220518-b4cb7da02_amd64.tgz

  sudo dpkg -i manticore-*5.0.0-220518-b4cb7da02_amd64.deb manticore-columnar-lib_1.15.2-220518-b0bcafb_amd64.deb
  ```

  {{< /tab >}}

{{< /tabs >}}

### 其他下载
{{< tabs >}}
  {{< tab "英语词形还原器" >}}
  ### Manticore Search 的英语词形还原器
  有关 Manticore Search 中词形还原的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Morphology)。

  将 [en.pak.tgz](https://repo.manticoresearch.com/repository/morphology/en.pak.tgz) 解压到在您的配置中指定为 [lemmatizer_base](https://mnt.cr/lemmatizer_base) 的文件夹（Linux 中默认为 `/usr/share/manticore/`），然后重新启动 Manticore Search。
  {{< /tab >}}
  {{< tab "德语词形还原器" >}}
  ### Manticore Search 的德语词形还原器
  有关 Manticore Search 中词形还原的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Morphology)。

将 [de.pak.tgz](https://repo.manticoresearch.com/repository/morphology/de.pak.tgz) 解压到在您的配置中指定为 [lemmatizer_base](https://mnt.cr/lemmatizer_base) 的文件夹（Linux 系统默认为 /usr/share/manticore/）中，并重新启动 Manticore Search。
  {{< /tab >}}
  {{< tab "Russian lemmatizer" >}}
  ### Manticore Search 的俄语词形还原器
  有关 Manticore Search 中词形还原的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Morphology)。

  将 [ru.pak.tgz](https://repo.manticoresearch.com/repository/morphology/ru.pak.tgz) 解压到在您的配置中指定为 [lemmatizer_base](https://mnt.cr/lemmatizer_base) 的文件夹（Linux 系统默认为 /usr/share/manticore/）中，并重新启动 Manticore Search。
  {{< /tab >}}
  {{< tab "Index converter" >}}
  ### 从 Sphinx/Manticore 2.x 到 Manticore 3.x 的索引转换器
  注意，Manticore 4 和 5 也可以读取转换后的索引。有关从 Sphinx 2 / Manticore 2 迁移的更多信息，请参阅 [文档](https://manual.manticoresearch.com/Installation/Migration_from_Sphinx)。

  {{< collapse "Ubuntu 16 Xenial" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_xenial/dists/xenial/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Ubuntu 18 Bionic" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_bionic/dists/bionic/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Ubuntu 20 Focal" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_focal/dists/focal/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Ubuntu 22 Jammy" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_jammy/dists/jammy/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Debian 9 Stretch" >}}
  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_stretch/dists/stretch/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Debian 10 Buster" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_buster/dists/buster/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Debian 11 Bullseye" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  wget https://repo.manticoresearch.com/repository/manticoresearch_bullseye/dists/bullseye/main/binary-amd64/manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb

  dpkg -i manticore-converter_5.0.0-220518-b4cb7da02_amd64.deb
  ```
  {{< /collapse >}}

  {{< collapse "Centos 7" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  yum install https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/x86_64/manticore-converter-5.0.0_220518.b4cb7da-1.el7.centos.x86_64.rpm
  ```
  {{< /collapse >}}

  {{< collapse "Centos 8 (Stream)" >}}

  ``` bash
  sudo apt install manticore-converter
  ```
  如果您使用我们的 APT 仓库或：
  ``` bash
  yum install https://repo.manticoresearch.com/repository/manticoresearch/release/centos/8/x86_64/manticore-converter-5.0.0_220518.b4cb7da02-1.el8.x86_64.rpm
  ```
  {{< /collapse >}}

  {{< collapse "MacOS" >}}

  {{< button "下载" "https://repo.manticoresearch.com/repository/manticoresearch_macos/release/manticore-5.0.0-220518-b4cb7da02-release-converter.tar.gz">}}
  {{< /collapse >}}

  {{< collapse "Windows" >}}

  {{< button "下载" "https://repo.manticoresearch.com/repository/manticoresearch_windows/release/x64/manticore-5.0.0-220518-b4cb7da02-release-converter.zip">}}
  {{< /collapse >}}

  {{< /tab >}}
{{< /tabs >}}

## 归档版本
{{< tabs >}}
  {{< tab "3.5.0 之前" >}}
  您可以在 [Github Releases](https://github.com/manticoresoftware/manticoresearch/releases) 找到 Manticore Search 3.5.0 之前的版本包
  {{< /tab >}}
  {{< tab "从 3.5.0 开始" >}}
  您可以在 [repo.manticoresearch.com](https://repo.manticoresearch.com/) 找到 Manticore Search 3.5.0 及以后的版本包
  {{< /tab >}}
{{< /tabs >}}
