powershell 安装Sitecore 9

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 安装Sitecore 9相关的知识,希望对你有一定的参考价值。

#define parameters 
$prefix = "sc9test_" 
$PSScriptRoot = "C:\install\sitecore\9.0" 
$XConnectCollectionService = "$prefix.xconnect" 
$sitecoreSiteName = "$prefix.sc" 
$SolrUrl = "https://solr-dev.precedent.local:8983/solr" 
$SolrRoot = "C:\solr\solr-6.6.2" 
$SolrService = "solr6.6.2" 
$SqlServer = "localhost" 
$SqlAdminUser = "sitecoreDev" 
$SqlAdminPassword="abc" 
 
#install client certificate for xconnect 
$certParams = @{     
	Path = "$PSScriptRoot\xconnect-createcert.json"     
	CertificateName = "$prefix.xconnect_client" 
} 

Install-SitecoreConfiguration @certParams -Verbose 
 
#install solr cores for xdb 
$solrParams = @{     
	Path = "$PSScriptRoot\xconnect-solr.json"     
	SolrUrl = $SolrUrl     
	SolrRoot = $SolrRoot     
	SolrService = $SolrService     
	CorePrefix = $prefix 
	} 

Install-SitecoreConfiguration @solrParams 
 
#deploy xconnect instance 
$xconnectParams = @{     
	Path = "$PSScriptRoot\xconnect-xp0.json"     
	Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_xp0xconnect.scwdp.zip"     
	LicenseFile = "$PSScriptRoot\license.xml"     
	Sitename = $XConnectCollectionService     
	XConnectCert = $certParams.CertificateName     
	SqlDbPrefix = $prefix  
	SqlServer = $SqlServer  
	SqlAdminUser = $SqlAdminUser     
	SqlAdminPassword = $SqlAdminPassword     
	SolrCorePrefix = $prefix     
	SolrURL = $SolrUrl 
	SSLCert = "193b4808dd549e1f38e57424f811fbf4e77e78b2"	
	} 

Install-SitecoreConfiguration @xconnectParams 
 
#install solr cores for sitecore 
$solrParams = @{     
	Path = "$PSScriptRoot\sitecore-solr.json"     
	SolrUrl = $SolrUrl     
	SolrRoot = $SolrRoot     
	SolrService = $SolrService     
	CorePrefix = $prefix 
	} 

Install-SitecoreConfiguration @solrParams 
 
#install sitecore instance 
$xconnectHostName = "$prefix.xconnect" 
$sitecoreParams = @{     
	Path = "$PSScriptRoot\sitecore-XP0.json"     
	Package = "$PSScriptRoot\Sitecore 9.0.0 rev. 171002 (OnPrem)_single.scwdp.zip" 
    LicenseFile = "$PSScriptRoot\license.xml"     
	SqlDbPrefix = $prefix  
	SqlServer = $SqlServer  
	SqlAdminUser = $SqlAdminUser     
	SqlAdminPassword = $SqlAdminPassword     
	SolrCorePrefix = $prefix  
	SolrUrl = $SolrUrl     
	XConnectCert = $certParams.CertificateName     
	Sitename = $sitecoreSiteName         
	XConnectCollectionService = "https://$XConnectCollectionService"    
	} 
	
Install-SitecoreConfiguration @sitecoreParams   

以上是关于powershell 安装Sitecore 9的主要内容,如果未能解决你的问题,请参考以下文章

Sitecore 9 安装 - error - failed to start service 'sitecore xconnect search indexer The Authority/

Sitecore Powershell 批量替换richtext 字段内容

Sitecore 9 安装 - error - Config Error: This configuration section cannot be used at this path. This h

Sitecore 8.1 rev 的 Sitecore 9.2 (002893) 等效 DLL。 151207

如何安装 Sitecore 的试用版

Sitecore 文件夹和 IIS 权限