如何比较IIS的配置是否不同? [英] How to compare if the configuration is different for IIS?

查看:137
本文介绍了如何比较IIS的配置是否不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在2台不同的计算机上运行IIS,我想知道2个IIS配置是否不同。如何比较不同IIS Web服务器上的配置设置?

Suppose I have IIS running on 2 different computers, I want to know if the 2 IIS configurations are different. How can I compare the configuration settings on different IIS Web Servers?

推荐答案

比较位于中的IIS配置文件C:\ Windows \ System32 \inetsrv\config 目录。



如果您使用WebDeploy工具:

Compare IIS configuration files located in C:\Windows\System32\inetsrv\config directory.
OR
If you use WebDeploy tool:

msdeploy.exe -verb:sync -source:webServer,computername=YourSourceMachine -disableLink:ContentExtension -dest:webServer,computername=YourDestinationMachine -whatif > c:\sync.log

c:\\\ sync.log 文件您将看到将YourSourceMachine中的IIS配置同步到YourDestinationMachine所需的操作。因为提供了 -whatif 参数,所以它只会同步同步过程。

In c:\sync.log file you will see what would take to synchronize IIS configuration from YourSourceMachine to YourDestinationMachine. Because -whatif parameter is provided it will only symulate synchronization process.

这篇关于如何比较IIS的配置是否不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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