設定混合式環境的 SharePoint 服務Set up SharePoint services for hybrid environments

摘要: 了解如何設定混合式環境所需的 SharePoint Server 服務。Summary: Learn how to set up the SharePoint Server services you'll need for a hybrid environment.

本文是設定 SharePoint 混合式解決方案程序藍圖的一部分。當您執行本文中的程序時,請務必遵循藍圖This article is part of a roadmap of procedures for configuring SharePoint hybrid solutions. Be sure you're following a roadmap when you do the procedures in this article.

設定混合式 SharePoint 服務Set up SharePoint services for hybrid

部署 我的網站、使用者設定檔和受管理的中繼資料等 SharePoint Server 服務可能是一項挑戰,且需要很多規畫。如果您計劃深入使用這些服務,我們強烈建議您遵循 我的網站使用者設定檔受管理的中繼資料的詳細規劃資訊。SharePoint Server services such as My Sites, User Profiles, and Managed Metadata can be challenging to deploy and can require a lot of planning. If you plan to make use of these services in depth, we highly recommend that you follow the detailed planning information for My Sites, User Profiles, and Managed Metadata.

不過,SharePoint Server 混合式案例 (如混合式搜尋) 要求數個服務在 SharePoint Server 中執行,但不需要大幅設定。在本文中,我們將看一下讓這些服務在您伺服器陣列中執行的簡單路徑,以便用於混合式設定。如果您想要使用更多可用功能,您可以在之後執行更多這些服務的廣泛設定。However, SharePoint Server hybrid scenarios, such as hybrid Search require several services to be running in SharePoint Server, but they do not require them to be extensively configured. In this article, we're going to look at the easy path to getting these services running on your farm for use in a hybrid configuration. You can do more extensive configuration of these services later if you want to use more of the available features.

請注意,如果您正在使用 SharePoint Server 2013,您需要手動開啟某些服務。(我們將在本文稍後以適當的程序解說此操作。)如果您正在使用 SharePoint Server 2016,MinRole 會自動處理這些服務。Note that if you're using SharePoint Server 2013, you need to turn on some services manually. (We call this out in the appropriate procedures later in the article.) If you're using SharePoint Server 2016, these services are handled automatically by MinRole.

SharePoint Server 中的混合式部署服務Services for hybrid deployments in SharePoint Server

SharePoint Server 混合式設定皆要求下列服務在您的伺服器陣列上執行:SharePoint Server hybrid configurations all require the following services to be running on your farm:

  • Managed Metadata Service 應用程式Managed Metadata service application

  • User Profile Service 應用程式User Profile Service application

  • 我的網站My Sites

如果您正在設定 商務用 OneDrive,這些是您唯一需要的服務。如果您正在設定混合式搜尋或混合式網站功能,則會有些額外要求,我們將在下一節說明。If you're setting up OneDrive for Business, these are the only services you need. If you're setting up a hybrid Search or hybrid sites features, there are some additional requirements that we'll cover in the next section.

如果您已經設定這些服務,則不需要新增這些服務的其他混合式執行個體,但請務必查看設定混合式特定設定,以了解適用於 SharePoint 和 BCS 混合式部署的 User Profile Service 重要設定資訊。If you've already configured these services, there's no need to add additional instances of them for hybrid, but be sure to see Configure hybrid specific settings for important configuration information for the User Profile Service for SharePoint and BCS hybrid deployments.

我們將為您說明每個設定。Let's look at how to set up each.

Managed Metadata ServiceManaged Metadata service

開啟 Managed Metadata Web Service (僅限 SharePoint Server 2013)To turn on the Managed Metadata Web Service (SharePoint Server 2013 only)

  1. 在管理中心的 [系統設定]**** 下方,按一下 [管理此伺服器上的服務]*In Central Administration, under *System Settings, click Manage services on server.

  2. 在伺服器下拉式清單中,選擇 [變更伺服器]*On the Server drop-down list, choose *Change Server.

  3. 選擇您想要執行 Managed Metadata Web Service 的伺服器。Choose the server where you want to run the Managed Metadata Web Service.

  4. 在 [服務]**** 清單中,針對 Managed Metadata Web Service 按一下 [啟動]*In the *Service list, click Start for the Managed Metadata Web Service.

您需要建立 Managed Metadata Service 應用程式。You need to create a Managed Metadata service application.

建立 Managed Metadata Service 應用程式To create a Managed Metadata service application

  1. 在管理中心中,按一下 [應用程式管理]**** 下的 [管理服務應用程式]*In Central Administration, in *Application Management section, click Manage service applications.

  2. 按一下 [新增]*,然後按一下 [Managed Metadata Service]Click **New, and then click **Managed Metadata Service*.

  3. 在 [名稱]**** 方塊中,輸入服務應用程式的名稱。Type a name for the service application in the Name box.

  4. 在 [資料庫名稱]**** 方塊中,輸入資料庫的名稱。In the Database Name box, type a name for the database.

  5. 在 [應用程式集區]**** 底下,從 [使用現有的應用程式集區]**** 清單中選擇 [SharePoint Web 服務預設值]*Under *Application Pool, choose SharePoint Web Services Default from the Use existing application pool list.

  6. 按一下 [確定]*Click *OK.

如果您正在設定混合式案例,這是您需要為 Managed Metadata Service 所做的所有設定。如果您想要進一步使用 Managed Metadata Service,請參閱<在 SharePoint Server 中規劃受管理的中繼資料>。That's all the configuration that you need to do for the Managed Metadata service if you're configuring a hybrid scenario. If you want to make further use of the Managed Metadata service, see Plan for managed metadata in SharePoint Server.

我的網站 **My Sites **

我們要做的第一件事是為 我的網站 網站建立 Web 應用程式。雖然 Web 應用程式可能位在與其他共同作業網站共用的應用程式集區,或可能位於個別的應用程式集區,但是在共用的 IIS 網站中,我們建議 我的網站 使用個別的 Web 應用程式。The first thing we need to do is to create a web application for the My Sites site. We recommend that My Sites be in a separate web application, although the web application can be in an application pool that is shared with other collaboration sites, or it can be in a separate application pool but in a shared IIS website.

此 Web 應用程式的預設設定將可在混合式環境中順利運作,或者,您可以自訂任何您組織需要的項目。The default settings for this web application will work fine for a hybrid environment, or you can customize any that you need to for your organization.

建立 Web 應用程式To create a web application

  1. 在管理中心的 [應用程式管理]**** 區段中,按一下 [管理 Web 應用程式]*In Central Administration, in the *Application Management section, click Manage web applications.

  2. 在功能區上,按一下 [新增]。On the ribbon, click New.

  3. 在 [建立新的 Web 應用程式]**** 頁面上,選取 [驗證]**** 區段中要用於此 Web 應用程式的驗證模式。On the Create New Web Application page, in the Authentication section, select the authentication mode that will be used for this web application.

  4. 您可以在 [IIS 網站]**** 區段中選取下列兩個選項之一,設定新 Web 應用程式的設定:In the IIS Web Site section, you can configure the settings for your new web application by selecting one of the following two options:

    • 按一下 [使用現有的 IIS 網站]*,然後選取要安裝新 Web 應用程式的網站。Click *Use an existing web site, and then select the website on which to install your new web application.

    • 按一下 [建立新的 IIS 網站]*,然後在 [名稱]* 方塊中輸入網站的名稱。Click Create a new IIS web site, and then type the name of the website in the Name box.

      您也可以提供連接埠號碼、主機標頭或新 IIS 網站的路徑。You can also provide the port number, host header, or path for the new IIS website.

  5. 在 [安全性設定]**** 區段中,選取驗證提供者、是否允許匿名存取,以及是否使用 Secure Sockets Layer (SSL)。In the Security Configuration section, select an authentication provider, whether to allow anonymous access, and whether to use Secure Sockets Layer (SSL).

  6. 在 [應用程式集區]**** 區段中,執行下列其中一項動作:In the Application Pool section, do one of the following:

    • 如果您要使用現有的應用程式集區,按一下 [使用現有的應用程式集區]*,然後從下拉式功能表中選取應用程式集區。If you want to use an existing application pool, click *Use existing application pool, and then select the application pool from the drop-down menu.

    • 如果您要建立新的應用程式集區,請按一下 [建立新的應用程式集區]*,然後輸入應用程式集區的名稱,再選取執行應用程式集區所使用的帳戶,或建立新的受管理帳戶,以執行應用程式集區。If you want to create a new application pool, click *Create a new application pool, type the name of the application pool, and either select the account that the application pool will run under or create a new managed account for the application pool to run under.

  7. 在 [資料庫名稱與驗證]**** 區段中,選取新 Web 應用程式的資料庫伺服器、資料庫名稱和驗證方法。In the Database Name and Authentication section, select the database server, database name, and authentication method for your new web application.

  8. 如果您使用資料庫鏡像,請在 [容錯移轉伺服器] 區段的 [容錯移轉資料庫伺服器] 方塊中,輸入您要與內容資料庫建立關聯的特定容錯移轉資料庫伺服器名稱。If you use database mirroring, in the Failover Server section, in the Failover Database Server box, type the name of a specific failover database server that you want to associate with a content database.

  9. 在 [服務應用程式連線] 區段中,選取要用於 Web 應用程式的服務應用程式連線。In the Service Application Connections section, select the service application connections that will be available to the web application.

  10. 在 [客戶經驗改進計畫] 區段中,按一下 [是] 或 [否]。In the Customer Experience Improvement Program section, click Yes or No.

  11. 按一下 [確定] 建立新的 Web 應用程式。Click OK to create the new web application.

  12. 當 [建立的應用程式]**** 頁面顯示時,按一下 [確定]*When the *Application Created page appears, click OK.

下一步,我們需要建立網站集合,託管使用者的 我的網站。Next, we need to create the site collection that will host users' My Sites.

建立「我的網站主機」網站集合To create a My Site Host site collection

  1. 在管理中心上,按一下 [應用程式管理]**** 區段中的 [建立網站集合]*On Central Administration, in the *Application Management section, click Create site collections.

  2. 在 [建立網站集合]**** 頁面的 [Web 應用程式]**** 區段中,選取您剛剛為「我的網站」建立的 Web 應用程式。On the Create Site Collection page, in the Web Application section, select the web application that you just created for MySites_plural.

  3. 在 [標題與描述]**** 區段中,輸入網站集合的標題及描述。In the Title and Description section, type the title and description for the site collection.

  4. 在 [網站位址] 區段中,選取「My Site」主機 URL 的路徑。在大多數情況下,您可以使用根目錄 (/)。In the Web Site Address section, select the path of the URL for the My Site host. In most cases, you can use the root directory (/).

  5. 在 [範本選擇]**** 區段中,按一下 [企業]**** 索引標籤,然後選取 [我的網站主機]*In the *Template Selection section, click the Enterprise tab, and then select My Site Host.

  6. 在 [主要網站集合管理員]**** 區段中,輸入將擔任網站集合管理員之使用者的使用者名稱 (格式為_網域<>\ _使用者名稱<>)。In the Primary Site Collection Administrator section, type the user name (in the form <user name>) for the user who will be the site collection administrator.

  7. 在 [次要網站集合管理員]**** 區段中,輸入網站集合次要管理員的使用者名稱。In the Secondary Site Collection Administrator section, type the user name for the secondary administrator of the site collection.

  8. 若使用配額管理網站集合的儲存,請在 [配額範本] 區段中,按一下 [選取配額範本] 清單中的範本。If you are using quotas to manage storage for site collections, in the Quota Template section, click a template in the Select a quota template list.

  9. 按一下 [確定]*Click *OK.

建立「我的網站主機」網站集合之後,[成功建立頂層網站]**** 頁面會隨即顯示。雖然您可以按一下連結瀏覽至網站集合的根目錄,但是這麼做會導致無法載入使用者設定檔的錯誤。這是預期的行為;此時尚未匯入使用者設定檔。The Top-Level Site Successfully Created page will appear when the MySite_singular Host site collection is created. Although you can click the link to browse to the root of the site collection, doing this results in an error because the user profile cannot be loaded. This behavior is to be expected; user profiles are not imported at this point.

User Profile ServiceUser Profile Service

如果您正在執行 SharePoint Server 2013,則您需要在伺服器陣列中至少一個伺服器上開啟 User Profile Service。If you're running SharePoint Server 2013, then you need to turn on the User Profile Service on at least one server in your farm.

開啟 User Profile Service (僅限SharePoint Server 2013)To turn on the User Profile Service (SharePoint Server 2013 only)

  1. 在管理中心的 [系統設定]**** 下方,按一下 [管理此伺服器上的服務]*In Central Administration, under *System Settings, click Manage services on server.

  2. 在伺服器下拉式清單中,選擇 [變更伺服器]*On the Server drop-down list, choose *Change Server.

  3. 選擇您想要執行 User Profile Service 的伺服器。Choose the server where you want to run the User Profile Service.

  4. 在 [服務]**** 清單中,針對 User Profile Service 按一下 [啟動]*In the *Service list, click Start for the User Profile Service.

    注意

    不要開啟 User Profile Synchronization Service。我們將在設定好 User Profile Service 應用程式後再執行該操作。Do not turn on the User Profile Synchronization Service. We'll do that later after we've configured the User Profile service application.

接下來,建立 User Profile Service 應用程式。Next, let's create a User Profile service application.

建立 User Profile Service 應用程式To create a User Profile service application

  1. 在管理中心中,按一下 [應用程式管理]**** 下的 [管理服務應用程式]*In Central Administration, in *Application Management section, click Manage service applications.

  2. 按一下 [新增]*,然後按一下 [User Profile Service 應用程式]Click **New, and then click **User Profile Service Application*.

  3. 在 [名稱]**** 方塊中,輸入服務應用程式的名稱。Type a name for the service application in the Name box.

  4. 在 [應用程式集區]**** 底下,從 [使用現有的應用程式集區]**** 清單中選擇 [SharePoint Web 服務預設值]*Under *Application Pool, choose SharePoint Web Services Default from the Use existing application pool list.

  5. 在 [我的網站主機 URL]**** 方塊中,輸入您建立的「我網站主機」URL。In the My Site Host URL box, type the URL of the My Site Host that you created.

  6. 選擇性地變更其他設定,以符合組織需求。預設設定可在混合式環境中正常運作。Optionally change other settings to meet the needs of your organization. The default settings work fine for hybrid environments.

  7. 按一下 [確定]*Click *OK.

如果您正在使用 SharePoint Server 2013,則下一步是開啟 User Profile Synchronization Service。請確定您開啟此項目的所在伺服器是建立服務應用程式時,指定為設定檔同步處理執行個體的伺服器。If you're using SharePoint Server 2013, the next step is to turn on the User Profile Synchronization Service. Be sure that you turn it on on the server that you specified as the Profile Synchronization Instance when you created the service application.

開啟 User Profile Synchronization Service (僅限 SharePoint Server 2013)To turn on the User Profile Synchronization Service (SharePoint Server 2013 only)

  1. 在管理中心的 [系統設定]**** 下方,按一下 [管理此伺服器上的服務]*In Central Administration, under *System Settings, click Manage services on server.

  2. 在伺服器下拉式清單中,選擇 [變更伺服器]*On the Server drop-down list, choose *Change Server.

  3. 選擇您指定為設定檔同步處理執行個體的伺服器。Choose the server that you specified as the Profile Synchronization Instance.

  4. 在 [服務]**** 清單中,針對 User Profile Synchronization Service 按一下 [啟動]*In the *Service list, click Start for the User Profile Synchronization Service.

  5. 輸入所示帳戶的認證,然後按一下 [確定]*Type the credentials for the account shown, and click *OK.

    注意

    啟動此服務可能需要幾分鐘或更長時間。請不時重新整理頁面,直到您看見 已啟動的狀態。This service can take several minutes or longer to start. Refresh the page occasionally until you see a status of Started.

下一步,我們將設定 App Management Service。Next, we'll configure the App Management Service.

** App Management Service App Management Service **

如果您正在使用 SharePoint Server 2013,則您需要在伺服器陣列中至少一個伺服器上開啟 App Management Service。If you're using SharePoint Server 2013, you need to turn on the App Management Service on at least one server in your farm.

開啟 App Management Service (僅限 SharePoint Server 2013)To turn on the App Management Service (SharePoint Server 2013 only)

  1. 在管理中心的 [系統設定]**** 下方,按一下 [管理此伺服器上的服務]*In Central Administration, under *System Settings, click Manage services on server.

  2. 在伺服器下拉式清單中,選擇 [變更伺服器]*On the Server drop-down list, choose *Change Server.

  3. 選擇您想要執行 Managed Metadata Web Service 的伺服器。Choose the server where you want to run the Managed Metadata Web Service.

  4. 在 [服務]**** 清單中,針對 App Management Service 按一下 [啟動]*In the *Service list, click Start for the App Management Service.

您需要建立 App Management Service 應用程式。You need to create an App Management service application.

建立 App Management Service 應用程式To create a App Management service application

  1. 在管理中心中,按一下 [應用程式管理]**** 下的 [管理服務應用程式]*In Central Administration, in *Application Management section, click Manage service applications.

  2. 按一下 [新增]*,然後按一下 [App Management 服務]Click **New, and then click **App Management Service*.

  3. 在 [服務應用程式名稱]**** 方塊中,輸入服務應用程式的名稱。Type a name for the service application in the Service Application Name box.

  4. 在 [應用程式集區]**** 底下,從 [使用現有的應用程式集區]**** 清單中選擇 [SharePoint Web 服務預設值]*Under *Application Pool, choose SharePoint Web Services Default from the Use existing application pool list.

  5. 按一下 [確定]*Click *OK.

設定混合式特定設定Configure hybrid specific settings

混合式功能會使用 Microsoft SharePoint Foundation 訂閱設定服務,此服務在 SharePoint Server 中預設為關閉。請使用下列程序來將其開啟。Hybrid uses the Microsoft SharePoint Foundation Subscription Settings Service which is turned off by default in SharePoint Server. Use the following procedure to turn it on.

開啟 Microsoft SharePoint Foundation 訂閱設定服務To turn on the Microsoft SharePoint Foundation Subscription Settings Service

  1. 在管理中心的 [系統設定]**** 下方,按一下 [管理此伺服器陣列中的服務]*In Central Administration, under *System Settings, click Manage services in this farm.

  2. 在 [Microsoft SharePoint Foundation 訂閱設定服務]**** 中按一下 [啟用自動佈建]*For the *Microsoft SharePoint Foundation Subscription Settings Service, click Enable Auto Provision

此外,您必須有訂閱設定服務應用程式和 Proxy。您必須使用 Microsoft PowerShell 來建立這些項目。請使用 New-SPSubscriptionSettingsServiceApplication 所提供的指令碼範例。You must also have a Subscription Settings service application and proxy. These must be created by using Microsoft PowerShell. Use the example script provided at New-SPSubscriptionSettingsServiceApplication.

** Active Directory 網域服務同步處理連線 ** Active Directory Domain Services synchronization connection

針對混合式功能,我們需要與 User Profile Service 的 Active Directory 網域服務同步處理連線。如果尚未設定,請使用下列程序來執行這項操作。For hybrid, we need a synchronization connection with Active Directory Domain Services for the User Profile service. If you haven't already configured one, use the following procedure to do so.

設定同步處理連線To configure a synchronization connection

  1. 在管理中心中,按一下 [應用程式管理]**** 下的 [管理服務應用程式]*In Central Administration, in *Application Management section, click Manage service applications.

  2. 按一下 [User Profile Service 應用程式]。Click the User Profile service application.

  3. 按一下 [設定同步處理連線]*Click *Configure Synchronization Connections.

  4. 按一下 [建立新連線]*Click *Create New Connection.

  5. 在 [連線名稱]**** 方塊中,輸入連線的名稱。Type a name for the connection in the Connection Name box.

  6. 在 [樹系名稱]**** 方塊中,輸入您的網域名稱,例如 contoso.com。In the Forest name box, type the name of your domain, for example, contoso.com.

  7. 輸入網域系統管理員的使用者名稱與密碼。Type the user name and password of your domain administrator.

  8. 按一下 [填入容器]*Click *Populate Containers.

  9. 展開網域節點,然後選取您使用者所在的物件核取方塊。Expand the domain node, and select the check box for the object where your users are located.

  10. 按一下 [確定]*Click *OK.

下一步,我們將驗證 User Profile Service 中的某些使用者屬性。Next, we'll verify some user properties in the User Profile Service.

Work email 使用者屬性必須包含您為 Active Directory 目錄服務中每位使用者設定的電子郵件地址。此外, User Principal Name 屬性都必須與 userPrincipalName 屬性相對應。您可以使用下列程序來驗證這兩者的對應。The Work email user property needs to contain the email address that you configured for each user in Active Directory Directory Services. Also, the User Principal Name property must be mapped to the userPrincipalName attribute. Use the following procedure to verify both of these mappings.

驗證使用者設定檔屬性To verify user profile properties

  1. 在管理中心中,按一下 [應用程式管理]**** 下的 [管理服務應用程式]*In Central Administration, in *Application Management section, click Manage service applications.

  2. 按一下 [User Profile Service 應用程式]。Click the User Profile service application.

  3. 按一下 [管理使用者屬性]*Click *Manage User Properties.

  4. 在 [屬性名稱]**** 欄中,確認 User Principal Name 與 [對應的屬性]**** 欄中的 userPrincipalName 相對應。In the Property Name column, confirm that User Principal Name is mapped to userPrincipalName in the Mapped Attribute column.

  5. 在 [屬性名稱]**** 欄中,確認工作電子郵件與 [對應的屬性]**** 欄中的 mail 相對應。In the Property Name column, confirm that Work email is mapped to mail in the Mapped Attribute column.

如果其中一個屬性未如所述一樣相對應,則必須更新對應If either of these properties is not mapped as described, you need to update the mapping.

同步處理使用者設定檔Synchronize user profiles

在您確認使用者的屬性對應之後,我們需要同步在 Active Directory 目錄服務中設定的 UPN 網域尾碼和電子郵件地址。若要執行這項操作,您必須啟動設定檔同步處理。After you verify the user property mappings, we need to synchronize the UPN domain suffix and email address that we configured in Active Directory Domain Services. To do this, you have to start a profile synchronization.

以手動方式啟動設定檔同步處理To start profile synchronization manually

  1. 在SharePoint 管理中心網站上,按一下 [應用程式管理]**** 區段中的 [管理服務應用程式]*On the SharePoint Central Administration website, in the *Application Management section, click Manage service applications.

  2. 按一下 [User Profile Service 應用程式]。Click the User Profile service application.

  3. 在 [管理設定檔服務]**** 頁面的 [同步處理]**** 區段中,按一下 [啟動設定檔同步處理]*On the *Manage Profile Service page, in the Synchronization section, click Start Profile Synchronization.

  4. 在 [啟動設定檔同步處理]**** 頁面上,選取 [啟動增量同步處理]**** 來同步您已更新的設定檔。On the Start Profile Synchronization page, select Start Incremental Synchronization to synchronize the profiles that you have updated.

  5. 按一下 [確定]*Click *OK.

    注意

    重新整理 [管理設定檔服務]**** 頁面,以檢視設定檔同步處理狀態。Refresh the Manage Profile Service page to view the profile synchronization status.

這是您要為 App Management Service 所做的所有設定。接下來,移至藍圖中的下一個步驟。That's all the configuration that you need to do for the App Management Service. Next, move on to the next step in your roadmap.