centos7中Meili Search搜索引擎安装流程步骤

2023-06-01 00:00:00 搜索引擎 步骤 流程

centos7+系统环境

安装

[[email protected] ~]# curl -L https://install.meilisearch.com | sh
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
 0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100  5216  100  5216    0     0   2402      0  0:00:02  0:00:02 --:--:-- 16148
Downloading MeiliSearch binary v0.20.0 for linux, architecture amd64...
 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed
100   631  100   631    0     0    445      0  0:00:01  0:00:01 --:--:--   445
46  297M   46  139M    0     0  92669      0  0:56:09  0:26:17  0:29:52  149k
curl: (56) TCP connection reset by peer
MeiliSearch binary successfully downloaded as 'meilisearch' file.

Run it:
   $ ./meilisearch
Usage:
   $ ./meilisearch --help
[[email protected] ~]# ll
总用量 148492
-rw-------.  1 root  root       1204 3月  23 17:06 anaconda-ks.cfg
drwxr-xr-x.  8 root  root       4096 3月  24 11:08 lnmp1.7
-rw-r--r--.  1 root  root     168539 12月 25 2020 lnmp1.7.tar.gz
-rw-r--r--.  1 root  root    3610829 3月  24 12:24 lnmp-install.log
-rwxr--r--   1 root  root  146193332 7月  22 18:09 meilisearch
drwxr-xr-x.  2 mysql mysql       192 10月 23 2019 rar
-rw-r--r--.  1 root  root     551239 11月  8 2019 rarlinux-x64-5.8.b3.tar.gz
drwxrwxr-x. 14 root  root       4096 4月  28 17:54 swoole-src-4.6.1
-rw-r--r--.  1 root  root    1508756 1月  22 16:50 swoole-src-4.6.1.tar.gz


我在执行启动./meilisearch的时候报错,如下

/lib64/libc.so.6: version `GLIBC_2.18' not found...

解决方式:

curl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxf glibc-2.18.tar.gz
cd glibc-2.18/
mkdir build
cd build/
../configure --prefix=/usr
make -j2
make install


最后完成的界面信息:

...  
 /root/glibc-2.18/build/elf/ldconfig  \
      /lib64 /usr/lib64
LD_SO=ld-linux-x86-64.so.2 CC="gcc" /usr/bin/perl scripts/test-installation.pl /root/glibc-2.18/build/
Your new glibc installation seems to be ok.
make[1]: Leaving directory `/root/glibc-2.18'
[[email protected] build]#

备注:make -j2会执行比较久的时候,请耐心等待,别中途退出了


继续启动

[[email protected] ~]# ./meilisearch

888b     d888          d8b 888 d8b  .d8888b.                                    888
8888b   d8888          Y8P 888 Y8P d88P  Y88b                                   888
88888b.d88888              888     Y88b.                                        888
888Y88888P888  .d88b.  888 888 888  "Y888b.    .d88b.   8888b.  888d888 .d8888b 88888b.
888 Y888P 888 d8P  Y8b 888 888 888     "Y88b. d8P  Y8b     "88b 888P"  d88P"    888 "88b
888  Y8P  888 88888888 888 888 888       "888 88888888 .d888888 888    888      888  888
888   "   888 Y8b.     888 888 888 Y88b  d88P Y8b.     888  888 888    Y88b.    888  888
888       888  "Y8888  888 888 888  "Y8888P"   "Y8888  "Y888888 888     "Y8888P 888  888

Database path:"./data.ms"
Server listening on:"http://127.0.0.1:7700"
Environment:"development"
Commit SHA:"7807a8dcffdfc5e8400074eafe451e9aab4c9864"
Build date:"2021-03-30T15:12:32.806848903+00:00"
Package version:"0.20.0"
Sentry DSN:"https://[email protected]/3060337"
Anonymous telemetry:"Enabled"

No master key found; The server will accept unidentified requests. If you need some protection in development mode, please export a key: export MEILI_MASTER_KEY=xxx

Documentation:https://docs.meilisearch.com
Source code:https://github.com/meilisearch/meilisearch
Contact:https://docs.meilisearch.com/learn/what_is_meilisearch/contact.html or [email protected]

[2021-07-23T01:47:10Z INFO  actix_server::builder] Starting 2 workers
[2021-07-23T01:47:10Z INFO  actix_server::builder] Starting "actix-web-service-127.0.0.1:7700" service on 127.0.0.1:7700


看到这界面就说明meili search已启动成功了


相关文章