提示
将bat脚本放在ES安装目录下(和bin同一个目录)
需要提前手动部署一个可以运行的ES,此脚本只是为了将ES部署到其他环境时一键部署。
如何安装ES可以参考其他教程。
我这里放了我的ES中config下的elasticsearch.yml的配置:
cluster.name: escluster
node.name: node_1
indices.query.bool.max_clause_count: 10240000 // 可以不设置
xpack.ml.enabled: false
network.host: ip地址
network.bind_host: ip地址
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization,content-type
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.verification_mode: certificate
xpack.security.http.ssl.keystore.path: elastic-certificates.p12
xpack.security.http.ssl.truststore.path: elastic-certificates.p12
http.port: 92