First, IIS expressis a graphic interface. iisexpress can be started when iisexpress.exe under the installation directory is started. To enable iisexpress without displaying a black window with the system, you can register it as a service (not tested yet)
Next, add a Website: After the installation is complete, the IIS express folder will be generated under the "My Documents" directory, and applicationhost. config will be opened in the config folder.
The site node is the website configuration node. Each website corresponds to one node.
<Site name = "MVC" id = "2" serverautostart = "true">
<Application Path = "/">
<Virtualdirectory Path = "/" physicalpath = "F: \ FTP \ portalwebsite"/>
</Application>
<Bindings>
<Binding protocol = "HTTP" bindinginformation = ": 80: demo.site.net"/>
<Binding protocol = "HTTP" bindinginformation = ": 80: localhost"/>
</Bindings>
</Site>
The sample code adds a website named MVC, ID is 2, path is the drive, and a Host Header of demo.site.net is added outside the default localhost. The test passes,
Study other nodes if you are interested.