elasticsearch不能以root用户启动的解决方法

栏目: 码农笔记 · 发布时间: 8年前

内容简介:elasticsearch不能以root用户启动的解决方法

在 root 用户下启动 elasticsearch,报如下错误:

[root@localhost elasticsearch-5.2.2]# ./bin/elasticsearch
//部分错误如下
[2017-03-15T22:16:22,913][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root

报错明确指出,不能以root用户启动

这种情况下,需要先改变目录的用户权限,然后再以普通用户启动

[root@localhost local]# chown -R essearch elasticsearch-5.2.2
[root@localhost local]# su - essearch
[hncl@localhost elasticsearch-5.2.2]$ ./bin/elasticsearch

这样就可以正常启动了。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

API Design for C++

API Design for C++

Martin Reddy / Morgan Kaufmann / 2011-2-18 / USD 59.95

The design of application programming interfaces can affect the behavior, capabilities, stability, and ease of use of end-user applications. With this book, you will learn how to design a good API for......一起来看看 《API Design for C++》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具