跳到主要內容

發表文章

目前顯示的是 9月, 2025的文章

安裝 Magento 2.4.8 無法成功連接 OpenSearch 解決方法

安裝過程初驗錯誤訊息 [Progress: 444 / 896] [Progress: 445 / 896] Installing search configuration...  In SearchConfig.php line 81:                                                                                             Could not validate a connection to the OpenSearch. No alive nodes found in your cluster   解決方法 你必須使用與 Magento 2.4.8-p2 相容的搜尋引擎。 方案一:使用 OpenSearch 2.x 容器 (推薦) 這是最簡單的方法,因為 OpenSearch 是 Magento 的預設推薦搜尋引擎。 安裝 Docker 使用以下指令拉取 docker 映像  OpenSearch : docker pull opensearchproject/opensearch:2.12.0 啟動 OpenSearch 2.x 容器 : 由於 OpenSearch 2.x 系列預設啟用了安全性,你需要設定管理員密碼。 docker run -d --name opensearch -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=your_opensearch_password" opensearchproject/opensearch...