一、安装方法:

brew install elastic/tap/elasticsearch-full

在这里插入图片描述安装成功!

二、启动:

brew services start elastic/tap/elasticsearch-full

在这里插入图片描述启动成功!

brew services 常用命令:

    brew services list  # 查看使用brew安装的服务列表
    brew services run formula|--all  # 启动服务(仅启动不注册)
    brew services start formula|--all  # 启动服务,并注册
    brew services stop formula|--all   # 停止服务,并取消注册
    brew services restart formula|--all  # 重启服务,并注册
    brew services cleanup  # 清除已卸载应用的无用的配置

三、安装过程中遇到的坎坷:

1、网不好:
brew install elastic/tap/elasticsearch-full

在这里插入图片描述解决方案:再执行一遍即可。

2、已被弃用:
brew install elasticsearch

在这里插入图片描述错误信息摘:

Warning: elasticsearch has been deprecated because it is switching to an incompatible license. Check out `opensearch` instead!
Error: elasticsearch: no bottle available!
You can try to install from source with:
  brew install --build-from-source elasticsearch
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.

按照提示继续操作:

brew install --build-from-source elasticsearch

在这里插入图片描述好了,撞上南墙就回头吧。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐