IIS installation configuration and simple website deployment process

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.

insert image description here

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"

insert image description here
insert image description here

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
insert image description here

insert image description here

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.

insert image description here

Start the installation after confirming, wait for a while for the installation to complete
insert image description here

4. The installation is complete, check the confirmation in the start menu

You can see the iis manager under windows management tools

insert image description here

Web publishing configuration

1. Open IIS Manager

insert image description here

insert image description here

2. Right-click "Site" → "Add Site"

insert image description here

3. Configure website parameters

  1. enter site name
  2. Choose a physical path
  3. configuration port

insert image description here

4. Complete the configuration and test

After the configuration is complete, the configured website appears under the website on the left

insert image description here

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
insert image description here

Guess you like

Origin blog.csdn.net/qq_39427511/article/details/131484923