ES启动错误Exception in thread "main" 2019-06-05 23:50:50,099 main ERROR No log4j2 configuration file fou

ES不在root下启动~
ES启动错误:Exception in thread “main” 2019-06-05 23:50:50,099 main ERROR No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property ‘log4j2.debug’ to show Log4j2 internal initialization logging.
有些博主写到解决方法:<请尽量保持冒号前面没空格,后面一个空格,不要用tab键> 表示不行啊
最终还是被我发现了,是权限问题

 原本的权限
[badou@mini3 local]$ ll
total 68
drwxr-xr-x.  2 root  root  4096 May 31 04:38 bin
drwxr-xr-x.  9 root  root  4096 Jun  5 23:54 elasticsearch-5.6.2

 运行(复制后要改你自己用户和版本哦):
[badou@mini3 local]$ sudo chown  -R badou:badou elasticsearch-5.6.2

 之后的权限
[badou@mini3 local]$ ll
total 68
drwxr-xr-x.  2 root  root  4096 May 31 04:38 bin
drwxr-xr-x.  9 badou badou 4096 Jun  5 23:54 elasticsearch-5.6.2

jps能看到了
[badou@mini3 elasticsearch-5.6.2]$ jps
3926 Jps
3835 Elasticsearch

进网页端也有:
 {
  "name" : "es-node",
  "cluster_name" : "es-cluster",
  "cluster_uuid" : "zM28e6nuS8mnv9u0rd294g",
  "version" : {
    "number" : "5.6.2",
    "build_hash" : "57e20f3",
    "build_date" : "2017-09-23T13:16:45.703Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}

你可能感兴趣的:(ES)