IIS10 save the configuration file and import, export, backup, restore,

1. Backup

%windir%\system32\inetsrv\appcmd.exe add backup "My Backup Name"


2. Restore
 

%windir%\system32\inetsrv\appcmd.exe restore backup "My Backup Name"



3. Delete Backup
 

%windir%\system32\inetsrv\appcmd.exe delete backup "My Backup Name"



4. Check backup
 

%windir%\system32\inetsrv\appcmd.exe list backup



If you want to move bulk data on the IIS server to another, we need to export all application pools and Web site:
1. Export application pool
 

%windir%\system32\inetsrv\AppCmd.exe LIST APPPOOL /config /XML > poolappcmdexport.xml



2. Export site configuration
 

%windir%\system32\inetsrv\AppCmd.exe LIST SITE /config /XML > iisappcmdexport.xml



3. Import application pool
 

%windir%\system32\inetsrv\AppCmd.exe ADD APPPOOL /IN < poolappcmdexport.xml



4. Import Site Configuration
 

%windir%\system32\inetsrv\AppCmd.exe ADD SITE /IN < iisappcmdexport.xml

 

Optimization machine.config

Path: C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319 \ Config

<processModel enable="true" requestQueueLimit="100000" maxWorkerThreads="1000" maxIoThreads="1000" minWorkerThreads="200" minIoThreads="200"/>

<processModel enable="true" requestQueueLimit="100000" maxWorkerThreads="1000" maxIoThreads="1000" minWorkerThreads="400" minIoThreads="400"/>

 

默认是

<processModel autoConfig="true"/>

 

自动安装iis

Install-WindowsFeature -ConfigurationFilePath d:\服务器\iis安装配置.xml

发布了16 篇原创文章 · 获赞 1 · 访问量 3万+

Guess you like

Origin blog.csdn.net/wvtjplh/article/details/83271021