by1455的自留地

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

一般而言,大部分的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

 

posted on 2014-03-08 22:59  by1455  阅读(395)  评论(0编辑  收藏  举报