将IIS设置恢复为默认值 [英] restore IIS setting to default

查看:157
本文介绍了将IIS设置恢复为默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows Server 2008中将IIS设置恢复为默认值

how can i restore IIS setting to default in windows server 2008

推荐答案

基于以下 ^ ]:
这取决于您存储配置设置的位置.默认情况下,IIS7将所有配置设置存储在名为"ApplicationHost.Config"的文件中.如果已配置了委派,则将看到与站点/应用程序相关的配置设置已写入站点/应用程序的web.config文件中.在vista上使用IIS7时,会自动创建一个用于主配置的备份文件.该文件称为"application.config.backup",它位于"C:\ Windows \ System32 \ inetsrv \ config"中.您可以将该文件重命名为applicationHost.config并将其替换为config文件夹中的applicationHost.config.服务器版本上的IIS7将具有更好的配置备份故事,但是现在,我建议使用APPCMD定期备份/还原您的配置.示例:APPCMD添加BACK"MYBACKUP"另一个选项(实际上是最后一个选项)是与WPAS(Windows Process激活服务)一起卸载/重新安装IIS.


还要查看此选项:如何备份/还原IIS7配置 [
Based on the following similar discussion[^]:
It depends on where you have the config settings stored. By default IIS7 will have all of it''s configuration settings stored in a file called "ApplicationHost.Config". If you have delegation configured then you will see site/app related config settings getting written to web.config file for the site/app. With IIS7 on vista there is an automatica backup file for master configuration is created. This file is called "application.config.backup" and it resides inside "C:\Windows\System32\inetsrv\config" You could rename this file to applicationHost.config and replace it with the applicationHost.config inside the config folder. IIS7 on server release will have better configuration back up story, but for now I recommend using APPCMD to backup/restore your configuration on regualr basis. Example: APPCMD ADD BACK "MYBACKUP" Another option (really the last option) is to uninstall/reinstall IIS along with WPAS (Windows Process activation service).


Also look at this option: How to backup/restore IIS7 configuration [^] - Using IIS History
%windir%\system32\inetsrv\appcmd.exe restore backup "My Backup Name"


此处的详细信息:
使用IIS 7和IIS 8的配置历史记录 [


Details here: Using Configuration History with IIS 7 and IIS 8 [^]


这篇关于将IIS设置恢复为默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆