Elasticsearch启动报错
程序员文章站
2022-04-28 11:59:22
...
Elasticsearch
1.安装启动
- 官网下载压缩包解压
- 在bin目录下启动
运行elasticsearch
2.启动问题
- 在root下启动会报错
[2018-04-19T10:11:25,603][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.4.jar:6.2.4]
Caused by: java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:105) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:172) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.2.4.jar:6.2.4]
... 6 more
解决方法:
采用普通用户登录可正常启动,由于应用安全机制是不允许使用Root用户启动。
同样在Centos7下以管理员身份打开谷歌浏览器也会报错
上一篇: springboot java websocket ws 快速入门
下一篇: Docker报错Job for docker.service failed because the control process exited with error code.
推荐阅读
-
解决cannot be cast to javax.servlet.Filter 报错的问题
-
IIS访问ASP页面时报错The requested resource is in use.的解决办法
-
oracle 实际值超过数据库某个字段指定长度报错解决
-
Android 中启动自己另一个程序的activity如何实现
-
无法在Web服务器上启动调试。未将项目配置为进行调试
-
Android 启动另一个App/apk中的Activity实现代码
-
【开发工具】本机安装的JDK8,启动IDEA2019没反应
-
Android中WebView实现点击超链接启动QQ的方法
-
docker run启动的容器挂掉了,数据怎么办
-
CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法