From 8b7f6e458cd7cff2d3dbcb3d0bb31dd0f4e4ae90 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Mon, 21 Oct 2019 23:02:22 +0800 Subject: [PATCH] =?UTF-8?q?Update=20ElasticSearch+Kibana=E5=8D=95=E6=9C=BA?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=90=AD=E5=BB=BA.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/installation/ElasticSearch+Kibana单机环境搭建.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notes/installation/ElasticSearch+Kibana单机环境搭建.md b/notes/installation/ElasticSearch+Kibana单机环境搭建.md index 66db4f9..63c2849 100644 --- a/notes/installation/ElasticSearch+Kibana单机环境搭建.md +++ b/notes/installation/ElasticSearch+Kibana单机环境搭建.md @@ -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,7 +88,8 @@ root hard nofile 65536 需要特别注意的是,处于安全的考虑,Elasticsearch 不允许使用 root 账户启动服务,所以启动时需要切换到其他用户。同时启动用户必须拥有 Elasticsearch 目录的访问权限,可以先使用`chown`命令授权后再使用`su`命令切换到对应用户,示例如下: ```shell - chown -R heibaiying:heibaiying /usr/app/elasticsearch-7.2.0/ +useradd heibaiying +chown -R heibaiying:heibaiying /usr/app/elasticsearch-7.2.0/ ``` ### 1.5 启动验证