打开命令提示符.
cd \Program Files\IIS Express
或
cd \Program Files (x86)\IIS Express
在64位操作系统上
iisexpress /?
显示使用情况
- Open a command prompt.
cd \Program Files\IIS Express
, or
cd \Program Files (x86)\IIS Express
on 64-bit OS
iisexpress /?
to show usage
例如,您可以通过发出以下命令来启动IIS Express命名站点:
iisexpress /site:WebSite1
其中WebSite1是用户配置文件配置文件(C:\ Program Files(x86)\ IIS Express \ AppServer \ applicationhost.config)中的站点
For example, you can start your IIS Express named site by issuing the command
iisexpress /site:WebSite1
where WebSite1 is a site from the user profile configuration file (C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config)
启动IIS Express的另一种常用方法是发出命令iisexpress /path:c:\myapp\ /port:80
该命令从c:\myapp
文件夹通过端口80运行站点.
Another common way to start IIS Express is to issue the command iisexpress /path:c:\myapp\ /port:80
This command runs the site from the c:\myapp
folder over port 80.
您可以使用包含在为您启动IIS Express的启动文件夹中的* .bat(使用C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
或所有用户"启动文件夹C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
).
You could use a *.bat that you include in your startup folder that starts IIS Express for you (using C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
or the All Users startup folder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
).
这篇关于如何启动IIS Express?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!