Current location - Quotes Website - Personality signature - How to build web in windows2008
How to build web in windows2008
First, install IIS 7.0:

Although Windows Server 2008 has built-in I IS 7.0, it will not be installed by default. Because installing IIS services in Windows Server 2008 is very different from the previous operation, you need to install IIS 7.0 components according to the following steps first.

1: Start-Server Manager-Roles-Add Roles:

2: Look at the Web server (IIS), and then you can see a brief introduction to the Web server.

3. When selecting the role service component in the Web server, the default selection is generally adopted. If there are special requirements, you can choose it according to the actual situation.

4: Then you can check the installation details of the Web server, and click the "Install" button to install the Web server after confirmation. After installing the Web server, run the command "Start → Administrative Tools →Internet Information Service Manager" in turn to activate the Internet Information Service Manager window. You can find that the interface of IIS 7.0 is very different from the previous version.

Secondly, create a website in IIS 7.0:

Although IIS7.0 has been installed, Web services can't be used normally immediately. After all, creating a website requires some settings. Although IIS 7.0 has changed a lot, it is relatively simple to create a website in Windows Server 2008. You can easily set it up by referring to the following steps.

1: Select "Website" in the Internet information service window, right-click and select "Add Website" in the pop-up menu to start creating websites.

2. Set the relevant parameters of the website in the window. For example, the name of the website can be set to "win2008", the home directory of the website can choose the directory where the home page is located, or the default path of WindowsServer 2008, and the IP address and port number of the website can be directly selected from the "IP address" drop-down list.

3. When finished, return to the Internet information server window. After the "Website" item, you can see a new "win2008" website in the middle area.

In order to verify whether the created Web server is available, just run IE browser on other computers in the intranet, and then enter the IP address corresponding to the Web server in the address bar. If you can see the welcome interface of IE7.0, the Web server has been successfully created.

Third, the website migration case:

1, the old and new server environments should be consistent (or higher version):

Original server environment: windows 2003 Enterprise SP4+IIS 6+. NET framework 4.0+SQL Server 2005+ others.

Target server environment: Window 2008 Enterprise R2+IIS 7+. NET framework 4.0+SQL Server 2008+ others.

2. Create an empty database with the same name as the backup library in SQL2008:

Restore database:

Wait a moment, and after the recovery is successful, check the database volume:

Check whether the DBA account has been successfully restored:

3. Stop the default website of the default station. Add a new station: specify the application pool, port 80 and physical home directory (at the same time, set the permission of the root directory to read by everyone):

4. In the server application pool, modify:

Status-Start all applications and change the process model identification to be consistent with the database verification method (such as system verification):

Restart browsing the website (you can also test access on the LAN at this time):

Local and LAN access to the server:

5. Resolve the public network address of the server. At this point, the case of moving the station is completed.

Fourthly, the graphic module sets the Web properties:

The modularization and graphics of IIS 7.0 are new functions. Expand the "Website" project in the Internet Information Service Manager window, select the website created, and view the modular setting interface. Usually these functions are relatively simple, and then introduce two cases of building a website.

Case 1: Set the default document of the website.

In IIS 7.0, documents such as index.html, index.htm, default.htm and default.asp are set as default documents by default. If you need to set other documents as default documents, you can follow the following steps.

1: double-click the "Default Document" icon in the graphical module interface to activate the setting window.

2: Click the "Add" link on the right in the setting window, and enter "index.asp" in the pop-up window. After confirmation, you can add the index.asp file to the default document.

3: For the default document, you can also select it and click the "Move Up" or "Move Down" link on the right to adjust the text arrangement order.

Case 2: Setting Server Certificates

For security reasons, many websites have to issue security certificates. If users do not accept or install certificates when browsing the website, they will not be able to browse the website normally. In IIS 7.0, you can set a server certificate and prompt to accept it when a client computer visits a website.

1: double-click the "server certificate" icon in the graphical module interface to activate the setting.

2: Click the Create Self-signed Certificate link on the right side of the Server Certificate window, and then set the name of the certificate in the Create Self-signed Certificate window.

3. After creating the self-signed certificate, return to the graphic module window and click the "Binding" link on the right to open the website binding window. Click the Add button here.

4: Select "https" from the "Type" drop-down list in the window to set the website as an https authentication type; Then select the IP address of the current Web server in the "IP address" drop-down list, for example,192.168.1.25, and the default port is 443; Then select the created Web ssl certificate from the SSL certificate drop-down list. After completing the above operations, the certificate setting is completed.

Verb (short for verb) Backup and restore IIS configuration:

1. backup: this refers to a directory, and the file name manager will automatically name it:

2. Restore: