目录
参考文献
创建应用
可以选择 docker镜像安装 或 自己搭建环境。
docker安装
1、从网站https://www.docker.com/下载适用于我们平台的 Docker Desktop :
2、安装后,我们需要获取官方的 Manticore 图像。在应用程序的顶部栏中,有一个搜索栏。只需在其中输入“ManticoreSearch”即可。
3、在输出中,我们有“manticoresearch/manticore”。
至此,就可以在本机运行 Manticore Search docker镜像了。
Linux
以 Centos7为例,可以下载对应的依赖包,安装部署到服务器。
本地编写dockerfile
FROM centos:7.9.2009
COPY . /manticore-binaries
RUN cd /manticore-binaries && ls -al && bash install.sh
# install.sh
yum -y install *.rpm
# configure
mv manticore.ini /etc/supervisord.d/
mv manticore.conf /etc/manticoresearch/manticore.conf
*其中 *.rpm是预先下载好的manticore的依赖包(在生产环境无法通过网络下载这些依赖包)
arch 根据实际安装的镜像填写
[powerop@root ~]$ arch
x86_64
# manticore依赖包
arch=`arch`
yum -y install https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-common-6.3.2_24062606.c296dc7c8-1.el7.centos.noarch.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-server-6.3.2_24062606.c296dc7c8-1.el7.centos.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-server-core-6.3.2_24062606.c296dc7c8-1.el7.centos.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-tools-6.3.2_24062606.c296dc7c8-1.el7.centos.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-6.3.2_24062606.c296dc7c8-1.el7.centos.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-devel-6.3.2_24062606.c296dc7c8-1.el7.centos.noarch.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-buddy-2.3.10_24052208.7612a4f-1.el7.noarch.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-backup-1.3.8_24052208.57fc406-1.el7.noarch.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-executor-1.1.6_24052206.c55bc2b-1.el7.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-columnar-lib-2.3.0_24052206.88a01c3-1.el7.centos.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-icudata.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-galera-3.37-1.el7.${arch}.rpm \
https://repo.manticoresearch.com/repository/manticoresearch/release/centos/7/${arch}/manticore-tzdata-1.0.0_240522.a8aa66e-1.noarch.rpm
相关配置
[program:manticore]
user=root
command=/usr/bin/searchd --config /etc/manticoresearch/manticore.conf
autostart=true
stdout_logfile=/opt/logs/%(ENV_app_id)s/manticore.out
stdout_logfile_maxbytes=0
redirect_stderr=true
stopwaitsecs=60
priority=999
searchd {
listen = 0.0.0.0:9312
listen = 0.0.0.0:9306:mysql
listen = 0.0.0.0:9308:http
log = /var/log/manticore/searchd.log
query_log = /var/log/manticore/query.log
pid_file = /run/manticore/searchd.pid
data_dir = /var/lib/manticore
}