更改ASDF在MacBook Pro上安装的Elasticsearch设置

发布于 2025-01-21 09:15:13 字数 497 浏览 2 评论 0原文

我已经安装了Elasticsearch 7.x(7.10.2)8.x(8.1.2)成功使用ASDF,并且两者似乎都在我的本地系统上运行而没有问题。

  • 版本7.x已禁用安全性,尽可能运行,并允许我的开发应用程序做出请求

  • 版本8.x已启用了安全性(默认情况下,I假设),按原样运行,但我无法向应用程序提出请求(卷曲或其他方式)。

我无法找出我本地计算机上安装了Elasticsearch的位置,以及如何更改安全设置以使8.x工作,例如7.x 7.x

您如何找出ASDF在Mac上安装的Elasticsearch在何处,如何才能更改8.x 8.x 8.x < /代码>版本?

I have installed elasticsearch 7.x (7.10.2) and 8.x (8.1.2) successfully with asdf and both appear to run on my local system without issue.

  • Version 7.x has security disabled, runs as it should, and allows my development apps to make requests

  • Version 8.x has security enabled (by default, I assume), runs as it should, but I cannot make requests to the application (curl or otherwise).

I'm unable to find out where elasticsearch was installed on my local machine and how to change the security settings to make 8.x work like 7.x.

There's not much documentation that does along with asdf-elasticsearch and almost all google searches land with articles about homebrew-installed elasticsearch (which ceased as the package manager after elasticsearch 7.x)

How can you find out where elasticsearch was installed by asdf on a mac and how can you change the security settings on the 8.x version?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝海似她心 2025-01-28 09:15:13

使用终端查找安装的位置

  • cd〜/.asdf/installs/elasticsearch

允许所有匿名请求,编辑以下

  • 移动到:cd〜/.asdf/installs/elasticsearch /config
  • 使用您选择的编辑器:代码elasticsearch.yml
  • 编辑true的值 false> false
# Enable security features
xpack.security.enabled: false

注意:这将删除所有您选择的本地(或任何服务器)上Elasticsearch的安全功能。 YMMV

Find the location of the installation

  • Using terminal: cd ~/.asdf/installs/elasticsearch

To allow for all anonymous requests, edit the following

  • Move to: cd ~/.asdf/installs/elasticsearch/config
  • Using your editor of choice: code elasticsearch.yml
  • Edit the value of true to false
# Enable security features
xpack.security.enabled: false

Note: This will remove all security features of elasticsearch on your local (or whatever server) you choose. YMMV

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文