运行 IIS Express 无需安装 IIS

Run IIS Express without installing IIS

我可以 运行 IIS Express 而不安装 IIS 吗?可能吗?

我可以通过任何批处理文件启用 IIS 吗?

第一个问题

Can I run IIS Express without installing IIS?

是的,但不是(官方)不安装 IIS Express 本身。来自 MS IIS Express FAQ:

Q: Can IIS Express be redistributed or embedded in other applications?

A: The IIS 7.5 Express license allows the MSI to be redistributed. You can include the MSI in your product or chain your installer to it. You can't distribute IIS Express in any other manner at the moment.

Q: Is IIS Express xcopy-deployable?

A: The core IIS Express runtime is xcopy-deployable. However, as of this time, xcopy deployment is not an officially supported feature.

第二题

Can I enable IIS by any batch file?

此外,来源相同

Q: Does IIS Express support the command line?

A: Yes, IIS Express can be launched using the command line and supports various runtime options. For information about how to use the command line, see Use the Command Line to Run a WebMatrix Site or Application.