Exception in thread “main“ 2020-07-01 10:49:28,569 main ERROR No Log4j 2 configuration file found. U

    技术2022-07-10  131

    ES在非root下启动 elasticsearch-5.6.16启动报错处理办法

    Exception in thread "main" 2020-07-01 10:49:28,569 main ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2

    解决办法: 确认es文件夹是否属于启动用户 若不是,则chown -R user:user es 如下:

    Processed: 0.012, SQL: 12