一般而言,大部分的sharepoint的管理工作均可以通过Centrlal Admin完成,可惜这个操作不得不要用powershell.
假如Webfront服务器叫 WebServer
目录服务器叫AppServer
以下是powershell命令
$hostWF1 = Get-SPEnterpriseSearchServiceInstance -Identity "WebServer"
$hostApp1 = Get-SPEnterpriseSearchServiceInstance -Identity "AppServer"
Start-SPEnterpriseSearchServiceInstance -Identity $hostWF1 Start-SPEnterpriseSearchServiceInstance -Identity $hostApp1
Get-SPEnterpriseSearchServiceInstance -Identity $hostWF1 Get-SPEnterpriseSearchServiceInstance -Identity $hostApp1
$ssa = Get-SPEnterpriseSearchServiceApplication
$newtopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa
在这里需要等一下,反复运行最后一行命令,直到 Status变成 online.
以下命令可以逐行运行,前行没有完成后行不要运行。
#APP server
New-SPEnterpriseSearchAdminComponent -SearchTopology $newtopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newtopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newtopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newtopology -SearchServiceInstance $hostApp1
New-SPEnterpriseSearchIndexComponent -SearchTopology $newtopology -SearchServiceInstance
$hostApp1
#WF01
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newtopology -SearchServiceInstance $hostWF1
Set-SPEnterpriseSearchTopology -Identity $newtopology
Get-SPEnterpriseSearchTopology -SearchApplication $ssa