zoukankan      html  css  js  c++  java
  • 解决centos&win安装安装elasticSearch无法运行

    用root用户安装的es,到es目录用sh ./bin/elasticsearch启动时报错,显示不能用root用户启动,于是换个用户启动

     可是报错

    main ERROR Could not register mbeans java.security.AccessControlException: access denied ("
    
    at
    
    at
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.
    
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.
    
    at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.
    
    at org.apache.logging.log4j.core.jmx.Server.register(Server.
    
    at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.
    
    at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.
    
    at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.
    
    at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.
    
    at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.
    
    at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.
    
    at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.
    
    at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogger(LogConfigurator.
    
    at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConfig(LogConfigurator.
    
    at org.elasticsearch.cli.Command.main(Command.
    
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.
    
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.

    大概意思就是log相关的问题,因为elasticsearch需要读写配置文件,我们需要给予config文件夹权限,新建用户没有权限,所以赋予config文件夹777权限即可

    win10下会出现同样的问题,用户没权限写log,教程参照:http://blog.csdn.net/hdfyq/article/details/52719266  亲测有效

  • 相关阅读:
    概率图模型 ——(6)团树传播算法
    概率图模型 ——(5)变量消元法求边缘概率
    Catkin workspace `/home/qian` is already initialized. No action taken.
    安装TensorRT
    vscode教程
    概率图模型 ——(4)因子图
    概率图模型 ——(3)马尔科夫随机场
    概率图模型 ——(2)贝叶斯网络
    概率图模型 ——(1)概率论与图论基础
    Kubernetes 是怎么实现服务发现的?
  • 原文地址:https://www.cnblogs.com/team42/p/8183666.html
Copyright © 2011-2022 走看看