Introduction
Internet Information Services (IIS) is a server created and maintained by Microsoft Corporation for hosting websites and web applications on Windows systems. IIS is an integral part of Windows Server and can also run on some versions of Windows.
IIS supports a variety of web development technologies, including ASP.NET, PHP, and static HTML pages. IIS also includes some other functions, such as FTP server, SMTP e-mail server, and tools for managing and maintaining Web servers.
IIS server construction
In Server Manager, click Add roles and features
In the Add Roles and Features Wizard, click Next and select "Role-based or feature-based installation"
Select your server (usually it is already selected) and click "Next"
In the list of roles, find and select "Web Server (IIS)", and then a new window will pop up asking to add some functions, try to add all that can be added, the application development must be ticked, otherwise the asp cannot be run, Then click "Next"
In the feature list, select ".NET Framework 3.5 Features" and ".NET Framework 4.7 Features" (or other version you need), and then click "Next"
Confirm your selection and click "Install" to start the installation, after the installation is complete, you may need to restart the server
IIS server installation is successful as shown in the figure below
build asp website
Open Server Manager and click [IIS Manager] in the upper right corner.
In the left connection column, expand the content on the left, find [Default Web Site], right click and select [Edit Binding]
In the pop-up [Webpage Binding], select the content inside, and click [Edit]
Open [Edit Website Binding] and set the IP address to the host IP of Windows Server, for example, here I am 192.168.47.175
Visit the IIS website http://192.168.47.175
, if the following interface appears, it means the build is successful
You can see its root directory by viewing the advanced settings of the website, such as my website root directory here isC:\inetpub\wwwroot
You can put your website source code in this directory