更改ASDF在MacBook Pro上安装的Elasticsearch设置
我已经安装了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 requestsVersion
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用终端查找安装的位置
cd〜/.asdf/installs/elasticsearch
允许所有匿名请求,编辑以下
cd〜/.asdf/installs/elasticsearch /config
代码elasticsearch.yml
true
的值false> false
注意:这将删除所有您选择的本地(或任何服务器)上Elasticsearch的安全功能。 YMMV
Find the location of the installation
cd ~/.asdf/installs/elasticsearch
To allow for all anonymous requests, edit the following
cd ~/.asdf/installs/elasticsearch/config
code elasticsearch.yml
true
tofalse
Note: This will remove all security features of elasticsearch on your local (or whatever server) you choose. YMMV