如何比较IIS的配置是否不同? [英] How to compare if the configuration is different for 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屋!