4
IIS配置导出与导入
source link: https://syxdevcode.github.io/2022/03/29/IIS%E9%85%8D%E7%BD%AE%E5%AF%BC%E5%87%BA%E4%B8%8E%E5%AF%BC%E5%85%A5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
IIS配置导出与导入
# 导出所有站点
%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml
# 导入所有站点
%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml
# 导出单独站点
%windir%\system32\inetsrv\appcmd list site "站点名称" /config /xml > c:\mywebsite.xml
# 导入单独站点
%windir%\system32\inetsrv\appcmd add site /in < c:\mywebsite.xml
应用程序池
所有程序池
# 导出所有应用程序池
%windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml
# 导入所有应用程序池
%windir%\system32\inetsrv\appcmd add apppool /in < c:\apppools.xml
单个程序池
# 导出单独的应用程序池
%windir%\system32\inetsrv\appcmd list apppool "应用程序池名称" /config /xml > c:\myapppool.xml
# 导入单独的应用程序池
%windir%\system32\inetsrv\appcmd add apppool /in < c:\myapppool.xml
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK