1.报错信息:
main ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile: java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender java.lang.IllegalStateException: No factory method found for class org.apache.logging.log4j.core.appender.RollingFileAppender
2.原因是,在安装elasticsearch时,新建的logs目录是用root用户建的,因此,logs下的文件是root用户权限,因此,将该权限改为非root用户即可文章来源:https://www.toymoban.com/news/detail-611729.html
3.解决方法:修改权限文章来源地址https://www.toymoban.com/news/detail-611729.html
cd /usr/local/elasticsearch-6.4.2
chown -R 用户 ./logs/
chgrp -R 用户组 ./logs/
到了这里,关于启动elasticsearch报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!