Install IIS on Windows Server and build Asp web pages

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

image-20230705172512222

In the Add Roles and Features Wizard, click Next and select "Role-based or feature-based installation"

image-20230705172750013

Select your server (usually it is already selected) and click "Next"

image-20230705172834890

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"

image-20230706092431767

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"

image-20230705202307249

Confirm your selection and click "Install" to start the installation, after the installation is complete, you may need to restart the server

image-20230705202432707

IIS server installation is successful as shown in the figure below

image-20230705203530856

build asp website

Open Server Manager and click [IIS Manager] in the upper right corner.

image-20230705205856288

In the left connection column, expand the content on the left, find [Default Web Site], right click and select [Edit Binding]

image-20230705205938743

In the pop-up [Webpage Binding], select the content inside, and click [Edit]

image-20230705205954538

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

image-20230705210008842

Visit the IIS website http://192.168.47.175, if the following interface appears, it means the build is successful

image-20230705210247975

You can see its root directory by viewing the advanced settings of the website, such as my website root directory here isC:\inetpub\wwwroot

image-20230706092820733

You can put your website source code in this directory

image-20230706092855599

Guess you like

Origin blog.csdn.net/xf555er/article/details/132424086