Update ElasticSearch+Kibana单机环境搭建.md

This commit is contained in:
heibaiying 2019-10-21 23:02:22 +08:00 committed by GitHub
parent f2226685e5
commit 8b7f6e458c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,8 @@ tar -zxvf kibana-7.2.0-linux-x86_64.tar.gz -C /usr/app/
修改安装目录下的 `config/elasticsearch.yml` 文件,修改内容如下:
```shell
# 当前节点的名称
node.name: node-1
# 修改绑定地址默认为本机地址此时只能在本机访问ElasticSearch服务想要所有主机都能访问则修改为0.0.0.0
network.host: 0.0.0.0
http.port: 9200
@ -86,6 +88,7 @@ root hard nofile 65536
需要特别注意的是处于安全的考虑Elasticsearch 不允许使用 root 账户启动服务,所以启动时需要切换到其他用户。同时启动用户必须拥有 Elasticsearch 目录的访问权限,可以先使用`chown`命令授权后再使用`su`命令切换到对应用户,示例如下:
```shell
useradd heibaiying
chown -R heibaiying:heibaiying /usr/app/elasticsearch-7.2.0/
```