在 Windows Server Core 上安裝 SharePoint Server 訂閱版本

適用于:no-img-132013 no-img-16 2016no-img-192019 yes-img-seSubscription Edition no-img-sopSharePoint in Microsoft 365

相較於具有桌面體驗的傳統型 Windows Server,Windows Server Core 是較精簡的 SharePoint Server 訂閱版本部署模式,因為伺服器核心會將安裝及執行伺服器真正需要的 OS 功能和服務數目降至最低。 此部署選項可減少對系統資源 (CPU、RAM 和磁碟空間) 的需求,以及降低安全性弱點的潛在攻擊面。 Microsoft 鼓勵 Windows Server 客戶在可行的情況下移至此安裝選項,以提供更好的支援。

執行下列步驟以在 Windows Server Core 上安裝 SharePoint Server 訂閱版本:

  1. 使用 Mount-DiskImage Cmdlet,或將 ISO 檔案指定為虛擬電腦管理員中的虛擬磁碟機,將 ISO 檔案掛接到您的伺服器。

    Mount-DiskImage -ImagePath "C:\SharePoint Files\OfficeServer.iso"
    
  2. 在伺服器上執行 SharePoint 必要條件安裝程式 (prerequisiteinstaller.exe)。

  3. \Files\SetupSilent\config.xml 檔案從您掛載的 ISO 磁片影像複製到可寫入的位置。

    Copy-Item -Path "D:\Files\SetupSilent\config.xml" -Destination "C:\SharePoint Files"
    
  4. 如果您的寫入位置中的 config.xml檔案具有唯讀檔案屬性,請將其移除。

    Set-ItemProperty -Path "C:\SharePoint Files\config.xml" -Name IsReadOnly -Value $false
    
  5. 在可寫入的位置中開啟 config.xml 檔案以進行編輯。

    notepad.exe "C:\SharePoint Files\config.xml"
    
  6. 尋找並移除檔案內的 <!----> 文字字串。 請勿移除介於這兩個文字字串之間的文字。

  7. 使用您的 SharePoint Server 產品金鑰,替代檔案中的 [在此處輸入產品金鑰] 文字字串。

  8. 將變更儲存到 config.xml 檔案。

  9. 在您的伺服器上於命令列模式中執行 SharePoint 設定 (setup.exe)。 在啟動 setup.exe 時,新增下列命令列參數:

    • /config <config file> (其中 <config file> 是可寫入的 config.xml 檔案路徑)
    • /IAcceptTheLicenseTerms (指定此參數表示您已閱讀、瞭解並同意 SharePoint Server 和 Project Server 的授權條款。)
    D:\setup.exe /config "C:\SharePoint Files\config.xml" /IAcceptTheLicenseTerms
    
  10. SharePoint 安裝程式完成後,將伺服器重新開機。

  11. 使用適當的參數執行下列 SharePoint PowerShell Cmdlet,以建立或加入伺服器陣列。

    1. New-SPConfigurationDatabase 可建立伺服器陣列或 Connect-SPConfigurationDatabase 可加入伺服器陣列。
    2. Update-SPFlightsConfigFile -FilePath "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\CONFIG\SPFlightRawConfig.json"
    3. Install-SPHelpCollection -All
    4. Initialize-SPResourceSecurity
    5. Install-SPService
    6. Install-SPFeature -AllExistingFeatures
    7. New-SPCentralAdministration
    8. Install-SPApplicationContent

    注意事項

    您也可以使用 PSCONFIG.EXE 命令列工具或 PSConfigUI.exe GUI 工具。 不過,如果 PSConfigUI.exe 因為與 HTML 轉譯元件的相依性,而需要在序列結束時顯示錯誤訊息的摘要,則會在 Windows Server Core 上當機。

  12. 透過 伺服器陣列設定精靈 設定您的伺服器陣列中的服務應用程式和網路應用程式。

    注意事項

    您必須從其他電腦使用網頁瀏覽器以存取 [管理中心] 網站。 Windows Server Core 不包含網頁瀏覽器。