问题
I've heard that this isn't possible because you need to have the Windows Server OS installed, but that seems kind of ridiculous because how would you set up a local development environment? Anyway, curious if this is possible.
回答1:
Exlcuding Windows Server OS', IIS6 needs Windows XP Pro 64-bit and IIS7 needs Vista.
A thread on the Microsoft IIS website also says you can, as 64-bit WinXP Pro comes with IIS6.
回答2:
This page says you cannot.
EDIT: Clarification: kernel-wise Windows XP 64-bit is 2003 for all intents and IIS related purposes.
回答3:
There are also some hacky methods to install IIS5 on XP Home, but I don't think that there are hacks for IIS6 on XP 32bit (thought 64 bit XP apparently has IIS6 available):
- Running IIS on Windows XP Home Edition?
- AdamV.com (looks similar)
This is not supported by MS. If you are just wanting to test locally, the dev server built in to VS is recommended (or Cassini - previous versions are available as well). If you are wanting to serve primarily non-asp.net content, then there are lots of other popular web servers available that will work on XP Home (Apache, etc).
来源:https://stackoverflow.com/questions/1180029/can-i-install-iis-6-or-7-on-a-windows-xp-machine