close

1.告訴在該環境中工作的其他用戶,因為您將在此過程中重新啟動IIS。
2.登錄到運行AOS服務的服務器,並以管理員模式啟動命令提示符
3.運行以下語句,將K更改為AOS服務的正確驅動器:

K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe –metadatadir K:\AosService\PackagesLocalDirectory –bindir K:\AosService\PackagesLocalDirectory\Bin –sqlserver . –sqldatabase axdb –sqluser <SQL admin user id> –sqlpwd <SQL users password> –setupmode maintenancemode –isinmaintenancemode true

4.使用iisreset命令重新啟動IIS

5. 這使環境處於維護模式。 這並不意味著無功能; 但您可能希望盡快退出維護模式。 完成後,在管理模式下從命令提示符運行此腳本(再次使用相應的驅動器號替換K):

K:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe –metadatadir K:\AosService\PackagesLocalDirectory –bindir K:\AosService\PackagesLocalDirectory\Bin –sqlserver . –sqldatabase axdb –sqluser <SQL admin user id> –sqlpwd <SQL users password> –setupmode maintenancemode –isinmaintenancemode false

 

 

第2個方法: SQL


By Sql Query:
--System variable table having system settings and configurations.
update SQLSYSTEMVARIABLES
--Set value to 1 (True).
set SQLSYSTEMVARIABLES.VALUE = 1
--Where clause of configuration mode.
where PARM = 'CONFIGURATIONMODE'

 

arrow
arrow

    lionlionchopper 發表在 痞客邦 留言(0) 人氣()