IIS installation and website configuration
Environment: win10
Note : This is to deploy iis under win10, deploy under development environment, develop and test, non-windows server
Introduction to IIS
Internet Information Services, referred to as IIS, is a windows-based Internet information service provided by Microsoft. It is a web service hosting tool, similar to tomcat in java, which can host and publish websites, web applications and web services. IIS consists of several components, including protocol listeners (such as HTTP.sys) and services such as World Wide Web Publishing Service (WWW Service) and Windows Process Activation Service (WAS). For more specific functional modules, please refer to the official website documentation IIS .
IIS is a frequently used tool for net programmers. When developing asp.net or webapi projects, some work of development and testing in local deployment requires mastering basic iis installation and configuration.
IIS installation
The default windows 10 system does not install iis. When developing asp.net or other web service programs, net developers need to conduct some tests on web services and websites in the development environment. Iis needs to be installed. The specific process is as follows:
1. Open the control panel
Open the Control Panel interface from the Start menu, or from Search.
2. In the control panel
In the Control Panel, go to the Programs page and turn on "Turn Windows features on or off".
method one:
Click "Programs" in the Control Panel, enter the program page, and then click "Turn Windows features on or off"
way two
The control panel is laid out in the form of "large/small icons" to display all control panel items. Click "Programs and Features" to enter the uninstall or change program interface, and click "Start or close windows features" on the left
3. Select service
Open the windows function window, select "Internet Information Services", the following sub-items can be selected according to the needs, you can choose the default first, and then install it later.
Start the installation after confirming, wait for a while for the installation to complete
4. The installation is complete, check the confirmation in the start menu
You can see the iis manager under windows management tools
Web publishing configuration
1. Open IIS Manager
2. Right-click "Site" → "Add Site"
3. Configure website parameters
- enter site name
- Choose a physical path
- configuration port
4. Complete the configuration and test
After the configuration is complete, the configured website appears under the website on the left
Enter the URL in the browser to visithttp://localhost:8080/index.html
http://localhost:8080(配置的端口)/index.html(网站的页面文件)
Effect:
A website's files can be accessed directly via URL