<code id='59ggg'><strong id='59ggg'></strong></code>

<i id='59ggg'><div id='59ggg'><ins id='59ggg'></ins></div></i>
<fieldset id='59ggg'></fieldset>

  • <tr id='59ggg'><strong id='59ggg'></strong><small id='59ggg'></small><button id='59ggg'></button><li id='59ggg'><noscript id='59ggg'><big id='59ggg'></big><dt id='59ggg'></dt></noscript></li></tr><ol id='59ggg'><table id='59ggg'><blockquote id='59ggg'><tbody id='59ggg'></tbody></blockquote></table></ol><u id='59ggg'></u><kbd id='59ggg'><kbd id='59ggg'></kbd></kbd>
      <acronym id='59ggg'><em id='59ggg'></em><td id='59ggg'><div id='59ggg'></div></td></acronym><address id='59ggg'><big id='59ggg'><big id='59ggg'></big><legend id='59ggg'></legend></big></address>

          <ins id='59ggg'></ins>

          1. <dl id='59ggg'></dl>
            <span id='59ggg'></span>

            <i id='59ggg'></i>

            如何解决centos下root运行Elasticsearch异常

            • 时间:
            • 浏览:11
            • 来源:124软件资讯网

                怎样解决centos下root运行Elasticsearch异常

              在CentOS 6.5 上运行Elasticsearch 2.3,异常如下:

                ?

              1 2 3 4 5 6 Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root. at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:93) at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:144) at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270) at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35) Refer to the log for complete error details.

                异常形貌为不能以root权限运行Elasticsearch.解决措施是运行时加上参数:

                ?

              1 bin/elasticsearch -Des.insecure.allow.root=true

                或者修改bin/elasticsearch ,加上ES_JAVA_OPTS属性:

                ?

              1 ES_JAVA_OPTS="-Des.insecure.allow.root=true"

                生存之后重启Elasticsearch  。