# Opensearch ###### tags: `實習` ## 升級版本 1. 直接 clone 最新版本就好,在[這裡](https://github.com/opensearch-project/OpenSearch-Dashboards)的 branch 找最新版本 2. 設定環境步驟照著 Developer Guide 做就行了(也可以直接照著下面的指令做) ```json= $ git clone https://github.com/opensearch-project/OpenSearch-Dashboards.git $ cd OpenSearch-Dashboards $ nvm use $ npm i -g yarn $ yarn osd bootstrap ``` 3. 下面這段複製在 ./config/opensearch_dashboards.yml ```json= $ opensearch.hosts: [https://10.11.233.105:9200] $ opensearch.username: admin $ opensearch.password: systex123! $ opensearch.ssl.verificationMode: none ``` 4. 程式碼每改變一次就需要重跑一次 ```json= $ yarn osd bootstrap $ yarn start ``` > 可能遇到的問題 :::danger Error: No .nvmrc file found ::: Solution: ```json= $ node -v > .nvmrc $ nvm use ``` --- ## 安裝 plugins - Plugins 是什麼? 顧名思義,像插件一樣為專案增加想要的功能 1. 直接從 github clone 需要的 plugin 2. 分別在不同的路徑中跑以下兩個指令 ```json= /open-dashboard/plugins$ yarn osd bootstrap /open-dashboard$ yarn start --no-base-path ``` 3.另外注意 opensearch_dashboards.yml 這邊的 host 不能直接寫 IP,會報錯喔 ```json= opensearch.hosts: [https://megaxidashboard:9200](這行要改) opensearch.ssl.verificationMode: none opensearch.username: admin # Default username on the docker image opensearch.password: systex123! # Default password on the docker image ```