天下程序员首页cx06.com
管理 |  登录 |  注册
袁鹏飞的小屋
笔记(共39个) > meilisearch

meilisearch在linux下的安装

阅读 0赞 0回复 2024-07-10 21:41:40
导航目录:共(2)个目录

 今天给大家带来一款轻盈、人人都会用的开源傻瓜搜索引擎——MeiliSearch

概述功能:搜索速度快、全文搜索、支持汉字、容易安装和维护,这不就是我在找的:傻瓜中文搜索引擎


我已经摩拳擦掌的跃跃欲试了,话不多说搞起!

简单的开始

纸上得来终觉浅,得上手试试效果。

1、安装和启动

Linux & Mac OS 的一键安装和启动的命令:

# Install Meilisearch latest version from the script
curl -L https://install.meilisearch.com | sh

Meilisearch安装程序是一组脚本,可确保您为系统获得正确的二进制文件。

接下来,您需要使二进制文件可以从系统中的任何地方访问。将二进制文件移动到/usr/local/bin中

mv ./meilisearch /usr/local/bin/

下面就可以简单配置并启动!

cat << EOF > /etc/systemd/system/meilisearch.service
[Unit]
Description=MeiliSearch
After=systemd-user-sessions.service
 
[Service]
Type=simple
ExecStart=/usr/bin/meilisearch --http-addr 127.0.0.1:7700 --env production --master-key xxxxxx
 
[Install]
WantedBy=default.target
EOF
 
# Set the service meilisearch
systemctl enable meilisearch
 
# Start the meilisearch service
systemctl start meilisearch
 
# Verify that the service is actually running
systemctl status meilisearch

下面看看成功启动后的样子


看到这个页面就是在linux下安装成功了!!

后面要写下怎么用php调用



赞(0)

文章作者置顶的回复

全部回复列表 当前第(1)页

添加回复,文明发言,会审核.(服务区回复可以发广告)

作者最新笔记
天下程序员 www.cx06.com 程序员的网上家园!
作者微信:13126507001