legacy-knowledge-base
公開されました Jul. 2, 2025

Sidecar Elasticsearch 7 の HTTP ポートを変更する方法

written-by

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Elasticsearch Sidecar を使用して Liferay の 2 つ以上のインスタンスをローカルで実行する必要があります。

環境

  • Liferay DXP 7.3
  • Liferay DXP 7.4

解決

SidecarモードのデフォルトのHTTPポートは、9201 です。

2 つ以上の 7.3 または 7.4 インスタンスがローカルで実行されている場合、このポートは各ノードで別々に構成する必要があります。

  • ファイル com.liferay.portal.search.elasticsearch7.configuration.ElasticsearchConfiguration.configに、以下の内容を記述したファイルを作成します
    sidecarHttpPort="AUTO"
  • [Liferay Home]/osgi/configsにファイルを配置します
  • DXPの再起動、またはApp Manager経由でElasticsearch 7コネクタを再起動します

この設定はSidecarにのみ適用されます。sidecar ElasticsearchノードのHTTPポート範囲を設定します。 AUTOに設定すると、9201- 9300の範囲で使用可能なポートが自動的に設定されます。未設定の場合、Embedded HTTP ポートの値が使用されます。

追加情報

  • ポート番号は、9202のように明示的に設定することもできます。
did-this-article-resolve-your-issue

legacy-knowledge-base