<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 配置Elasticsearch Elasticsearch提供了不錯的默認值,且僅需較少的配置。 可以使用[群集的更新設置API](../Cluster_APIs/Cluster_Update_Settings.md)在正在運行的群集上更改大多數配置。 配置文件中可能需要包含特定于節點的配置(例如:`node.name`和`paths`)與節點為了能夠加入群集而需要的配置,例如:`cluster.name`和`network.host`。 ## 配置文件位置 Elasticsearch有三個配置文件: - 用于配置Elasticsearch的`elasticsearch.yml`; - jvm.options for configuring Elasticsearch JVM settings - log4j2.properties用于配置Elasticsearch日志記錄的`log4j2.properties`。 這些文件位于配置文件目錄中,其位置默認為`$ES_HOME/config/`。Debian和RPM軟件包將config目錄位置設置為`/etc/elasticsearch/`。 可以使用`path.conf`設置更改配置文件目錄的位置,如下所示: ``` ./bin/elasticsearch -Epath.conf=/path/to/my/config/ ``` Alternatively, you can export the `ES_PATH_CONF` environment variable via the command line or via your shell profile. For the package distributions, the config directory location defaults to `/etc/elasticsearch`. The location of the config directory can also be changed via the ES_PATH_CONF environment variable, but note that setting this in your shell is not sufficient. Instead, this variabled is sourced from `/etc/default/elasticsearch` (for the Debian package) and `/etc/sysconfig/elasticsearch` (for the RPM package). You will need to edit the `ES_PATH_CONF=/etc/elasticsearch` entry in one of these files accordingly to change the config directory location. ## 配置文件格式 配置格式為[YAML](http://www.yaml.org/)。 下面是更改數據目錄和日志目錄路徑的示例: ``` path: data: /var/lib/elasticsearch logs: /var/log/elasticsearch ``` 設置也可以展平開如下: ``` path.data: /var/lib/elasticsearch path.logs: /var/log/elasticsearch ``` ## 環境變量替換 配置文件中可以使用`${...}`符號來引用環境變量的值,例如: ``` node.name: ${HOSTNAME} network.host: ${ES_NETWORK_HOST} ``` ## 交互式配置 對于您不希望保存在配置文件中的設置,您可以使用`${prompt.text}`或`${prompt.secret}`這樣的值并在控制臺啟動Elasticsearch。`${prompt.secret}`禁用了打印,所以輸入的值不會在終端顯示; `${prompt.text}`將允許您在鍵入時看到值。例如: ``` node: name: ${prompt.text} ``` 當啟動Elasticsearch時,將提示您進行輸入,如下所示: ``` Enter value for [node.name]: ``` > 注意 > > 如果在配置文件中使用`${prompt.text}`或`${prompt.secret}`,Elasticsearch將不能作為服務進程運行或者是在后臺運行。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看