下载
Past Releases of Elastic Stack Software | Elastic
解压tar -xzvf elasticsearch-8.15.1-darwin-x86_64.tar.gz
修改配置文件config/elasticsearch.yml
xpack.security.enabled: false
xpack.security.http.ssl:
enabled: false
切换目录
cd elasticsearch-8.15.1/bin
启动
./elasticsearch
禁用Gatekeeper的主开关,允许运行任何来源的应用
sudo spctl --master-disable
访问http://127.0.0.1:9200/
恢复默认的安全设置
sudo spctl --master-enable