ThingWorx Flow > ThingWorx Flow 安裝與管理 > 管理 ThingWorx Flow > 將 ThingWorx Flow 8.4.1 的資料庫管理員密碼更新至 8.4.8
將 ThingWorx Flow 8.4.1 的資料庫管理員密碼更新至 8.4.8
更新 ThingWorx Flow 資料庫管理員的密碼之後,您必須在 ThingWorx Flow 中更新相同的密碼。欲執行此操作,請完成下列步驟:
1. 在您安裝 ThingWorx Flow 的電腦上以管理員身份啟動指令提示,並執行下列指令以取得 secret 參數的值:
a. pm2 prettylist | find "CONFIG_IMAGE"
b. 複製 CONFIG_IMAGE 變數的值。這是您需要在步驟 3 與步驟 7 中提供之 secret 參數的值。
secret 參數的值可用來解密信任倉庫。
2. 執行下列指令:
a. cd \ThingWorxOrchestration\cryptography\tw-security-common-nodejs
b. Windows:npm link
Linux:sudo npm link
3. 執行下列指令來解密加密的金鑰檔案:
node dist\KeyFileTool.js --secret <CONFIG_IMAGE 值> --keyfile-location \ThingWorxOrchestration\misc\keyfile-key --plaintext \ThingWorxOrchestration\cryptography\keys.json --encrypted \ThingWorxOrchestration\cryptography\keys.enc decrypt
此指令會在 \ThingWorxOrchestration\cryptography\ 資料夾下建立新的解密 keys.json 檔案。
4. keys.json 檔案中,用更新的 ThingWorx Flow 資料庫管理員密碼修改 MODEL_DB.connection.password 參數。
5. 建立 \ThingWorxOrchestration\cryptography\keys.enc 檔案的備份。
6. 刪除 \ThingWorxOrchestration\cryptography\keys.enc 檔案。
7. 執行下列指令以建立新的加密 keys.enc 檔案:
node dist\KeyFileTool.js --secret <CONFIG_IMAGE 值> --keyfile-location \ThingWorxOrchestration\misc\keyfile-key --plaintext \ThingWorxOrchestration\cryptography\keys.json --encrypted \ThingWorxOrchestration\cryptography\keys.enc encrypt
此指令會在 \ThingWorxOrchestration\cryptography\ 資料夾下建立加密的 keys.enc 檔案。
8. 刪除已解密的 keys.json 檔案。
9. 重新啟動 ThingWorx Flow 服務。