安裝、啟動及停止環境定義察覺搜尋引擎

您必須先在作業系統上安裝和啟動搜尋引擎,才能使用環境定義察覺搜尋。如果伺服器已重新命名,請重新啟動環境定義察覺搜尋引擎,以便指向新的儲存庫 URL。

程序

  1. 開啟平台的命令提示字元,存取 engine_install_dir/jazz/searchengine/eclipse 子目錄,其中 engine_install_dir 是您解壓縮搜尋引擎的位置。 您可以執行 Script 檔或執行檔(search_engine.exe 或 search_engine),以執行這個元件。 您可能需要用文字編輯器來編輯 Script 檔,以確定 JAVA_HOME 環境變數已正確設為 IBM® JRE 的位置。依預設,現行工作目錄中會建立 catt 目錄供寫入資料。 您可以在 search_engine 指令中使用 -baseOutputDir 參數來變更工作目錄。如果您執行 search_engine 指令時不指定參數,則會顯示訊息指出參數選項。您可以使用下列其中一個指令來啟動搜尋引擎:
    在 Windows 上:
    search_engine.bat -repository repositoryURL -userId username 
                      -pass password -engineId engine
    或
    search_engine.exe -vm jrePath/bin/java -repository repositoryURL 
                      -userId username -pass password -engineId engine
    在 Linux、Linux on z/OS®、Linux on Power PC、AIX® 或 Solaris 上:
    ./search_engine.sh -repository repositoryURL -userId username 
                       -pass password -engineId engine
    或
    ./search_engine -vm jrePath/bin/java -repository repositoryURL 
                    -userId username -pass password -engineId engine
    其中:
    • jrePath 是 IBM JRE 的路徑。這可以是 jdk 子目錄或 eclipse/jdk 子目錄,視您的安裝方法而定。
    • repositoryURL 是您的儲存庫 URL:例如,https://hostname.example.com:9443/ccm/。
    • username 是對於要編製索引的專案區域具有讀取權的使用者名稱。
    • password 是使用者密碼
    • engine 是搜尋引擎 ID。
    • 選用。-passwordFile password file path 是以 -createPasswordFile 參數建立的加密密碼檔的路徑(請參閱下方)。
    • 選用。您可以使用 -baseOutputDir dir 作為額外參數。 在此情況下,dir 是寫入和讀取檔案的基本目錄。 如果現行工作目錄是唯讀的,則需要這個參數。依預設,現行工作目錄下會建立 catt 目錄作為基本目錄。
      註: 如果您嘗試執行另一個搜尋引擎實例,且同樣使用您以 -baseOutputDir 參數為目前執行的實例所配置的輸出目錄,則新的實例會結束並顯示下列訊息:
      這個應用程式將結束 - 執行中的搜尋引擎實例已在使用輸出目錄。
    • 選用。-verbose 用來啟用詳細輸出。
    • 選用。-createPasswordFile pass.txt,其中 pass.txt 是以 -createPasswordFile 參數建立的加密密碼檔的路徑。pass.txt 可以指向任何名稱的檔案。
      註: 輸入指令時指定 -createPasswordFile 參數,如下所示:
      Windows:
      search_engine.bat -createPasswordFile pass.txt
      Linux、Linux on z/OS、Linux on Power PC、AIX 或 Solaris:
      ./search_engine.sh -createPasswordFile pass.txt
      IBM i:
      ./search_engine.sh -createPasswordFile pass.txt
  2. 如果要停止搜尋引擎,請在搜尋引擎指令畫面中按下 CTRL+C。 在 IBM i 上,如果您以互動方式執行搜尋引擎,請按 F3 結束 Qshell 並停止它。

意見