在注册表中查找connectionstring来修改数据库连接串,修改数据库连接地址。
重启所有citrix的服务
使用下面的命令查看monitor和logging的connectionstring是否正确
Get-MonitorDataStore
Get-LogDataStore
如果不正确使用下面的命令来修改
$cs="xxx"
Set-MonitorDBConnection -Datastore Monitor -DBConnection $null
Set-MonitorDBConnection -Datastore Monitor -DBConnection $CS
Set-LogDBConnection -DataStore Logging -DBConnection $null
Set-LogDBConnection -DataStore Logging -DBConnection $cs
使用下面的命令重新注册service instance
Unregister Service Instance (Analytics only for
7.6)
Get-configregisteredserviceinstance | unregister-configregisteredserviceinstance #only run one time on a DDC
Get-Configserviceinstance | register-configserviceinstance
Get-Hypserviceinstance | register-configserviceinstance
Get-Acctserviceinstance | register-configserviceinstance
Get-AnalyticsServiceInstance | register-configserviceinstance
Get-Provserviceinstance | register-configserviceinstance
Get-Sfserviceinstance | register-configserviceinstance
Get-Monitorserviceinstance | register-configserviceinstance
Get-Envtestserviceinstance | register-configserviceinstance
Get-Brokerserviceinstance | register-configserviceinstance
Get-Logserviceinstance | register-configserviceinstance
Get-Adminserviceinstance | register-configserviceinstance
$ccs = Get-Configserviceinstance
$ccs | Reset-ConfigServiceGroupMemberShip
$ccs | Reset-LogServiceGroupMemberShip
$ccs | Reset-AdminServiceGroupMemberShip
$ccs | Reset-ProvServiceGroupMemberShip
$ccs | Reset-HypServiceGroupMemberShip
$ccs | Reset-AcctServiceGroupMemberShip
$ccs | Reset-AnalyticsServiceGroupMemberShip
$ccs | Reset-SfServiceGroupMemberShip
$ccs | Reset-BrokerServiceGroupMemberShip
$ccs | Reset-MonitorServiceGroupMemberShip
$ccs | Reset-EnvtestServiceGroupMemberShip
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。