安裝與升級 > 安裝與組態指南 > 使用 PTC Solution Installer > 安裝 Windchill 解決方案 > 選用產品設定 > Windchill Index Search 安裝 > Windchill Index Search 安裝後組態 > 在雲端模式下配置索引搜尋伺服器 > 配置 Solr 的基本驗證 (雲端模式)
  
配置 Solr 的基本驗證 (雲端模式)
會透過在安裝時提供的使用者名稱與密碼自動配置基本驗證。本節描述如何根據需要手動配置基本驗證。
1. 開啟指令提示並導覽至 <INDEX_SEARCH_HOME>/solr/server/scripts/cloud-scripts
2. 執行下列指令將 security.json 載入至 Zookeeper 節點總體︰
Windows︰
zkcli.bat -cmd putfile /security.json <INDEX_SEARCH_HOME>/config/solr/security.json -z <逗號分隔的 Zookeeper 主機名稱清單:埠項目>
Unix:
sh zkcli.sh -cmd putfile /security.json <INDEX_SEARCH_HOME>/config/solr/security.json -z <逗號分隔的 Zookeeper 主機名稱清單:埠項目>
* 
每當執行 xconfmanger 設定索引搜尋伺服器的內容時,會以指定的使用者名稱與密碼產生 <INDEX_SEARCH_HOME>/config/solr/security.json。此檔案可以載入 Zookeeper 節點總體來設定或變更 Solr 雲端的驗證資訊。
3. 開啟 Solr 管理員介面,並確認系統是否提示您輸入使用者名稱與密碼︰
http://<SOLR_HOSTNAME>:<SOLR_PORT>/solr
變更 Solr 使用者或密碼
您變更 Solr 使用者或密碼時,您必須更新 Windchill Index Search 用戶端與伺服器。
1. 開啟 Windchill Shell 並執行下列指令來變更 Windchill Index Search 用戶端的密碼或使用者︰
xconfmanager -s wt.index.solrAdminUser=<New_User> -t codebase/WEB-INF/conf/index.solrAuth.properties -p
xconfmanager -s wt.index.solrAdminPassword=<New_Password> -t codebase/WEB-INF/conf/index.solrAuth.properties -p
2. 重新啟動 Windchill
3. 從指令提示下,導覽至 <INDEX_SEARCH_HOME>/bin,並執行下列指令來變更 Windchill Index Search 伺服器的密碼或使用者︰
Windows:
xconfmanager -s wt.index.server.solrAdminUser=<New_User> -t config/solrserver.properties -p
xconfmanager -s wt.index.server.solrAdminPassword=<New_Password> -t config/solrserver.properties -p
Unix:
sh xconfmanager -s wt.index.server.solrAdminUser=<New_User> -t config/solrserver.properties -p
sh xconfmanager -s wt.index.server.solrAdminPassword=<New_Password> -t config/solrserver.properties -p
4. 請依照上述的步驟將 <INDEX_SEARCH_HOME>/config/solr/security.json 載入至 Zookeeper 節點總體。
5. 重新啟動 Solr 和 Zookeeper 節點。