Installation of IIS
Generally, IIS is not installed by default when installing the operating system, so IIS needs to be installed when configuring the Web server for the first time. The installation method is:
1, open? Control panel? , open? Add/Remove Programs? , pop up? Add/Remove Programs? Windows.
2. click? Add/remove Windows components? Icon, pop up? Windows component wizard? Dialog box.
3. choose? A tour guide? Are you online? Application server? Check box. Click? Details? Button, pop up? Application server? Dialog box.
4. Select the required components, among which? Internet information service (IIS)? And then what? Application server console? You must select it. Selected? Internet information service (IIS)? After that, click? Details? Button, pop up? Internet information service (IIS)? Dialog box.
5. choose? Internet information service manager? And then what? World Wide Web service? . And was chosen? World Wide Web service? After that, click? Details? Button, pop up? World Wide Web service? Dialog box.
6. Which one? World Wide Web service? You must choose. If you want the server to support ASP, you should also check? Active server page? . One point at a time? Are you sure? Button to close the dialog box until the figure 1? Windows component wizard? Dialog box.
7. click? What's next? Button, the system starts to install IIS. In the meantime, you may need to insert the Windows Server 2003 installation disk, and the system will install it automatically.
8. After the installation is completed, a dialog box prompting the successful installation will pop up. Click? Are you sure? Button to complete the installation of IIS.
Friendly reminder: if you want to load FTP server at the same time, in? Internet information service (IIS)? What should be put in the dialog box? File Transfer Protocol (FTP) service? The check box of will also be selected.
Create a website in IIS
Open it? Internet information service manager? , in the directory tree? Website? Right-click and select? New? Website? , pop up? Website creation wizard? :
The website description is the name of the website, which will be displayed in the directory tree of the IIS window to facilitate the administrator to identify each website. In this case, it is called. Branches website? .
Website IP address: if selected? All unassigned? , the server will bind all the IP addresses of the machine to the website. This option is applicable when there is only one website in the server. You can also select the IP address from the drop-down list box (the drop-down list box lists the configured IP address of this machine, if not, you should configure the IP address of this machine before selecting. )
TCP port: Generally, the default port number is 80. If it is changed to another value, the user must add the port number to the address when visiting the site.
Host header: If the site already has a domain name, you can enter the domain name in the host header.
The home directory path is the location of the root directory of the website. Browse? Button to select a folder as the home directory of the website.
Website access right is the right to restrict users from accessing websites. Reading? Is it necessary? Run the script? You can make the site support ASP, and other permissions can be set as needed.
Click? What's next? , pop up? Complete the wizard? Dialog box, the process of creating a new website is completed, and you can see the newly created website in IIS. Copy the completed webpage and related files to the home directory, and you can visit this website at ordinary times.
The way to visit the website is: if you visit it on this computer, you can enter it in the address bar of the browser. ? , user access? /pic/ file 1? , the actual location of the access is the server's? D:myimage file 1? So users don't know the real name and location of the virtual directory.
How to create a virtual directory:
Open the Internet information service window, right-click the website where you want to create a virtual directory, and then select? Create a new virtual directory? . The virtual directory creation wizard pops up:
Alias is the mapped name, that is, the name when the customer visits;
Path: the real path name on the server, that is, the actual location of the virtual directory;
Access right: refers to the customer's access right to the directory.
Click? What's next? Button, the completion dialog box pops up, and the virtual directory is successfully established. Copying related files into a virtual directory allows users to access the specified files according to the virtual tree structure.
Usually, the access rights and default documents of virtual directories are inherited from autonomous directories. If you need to modify it, you can do it in? Internet information service manager? Right-click the virtual directory in and select? Attribute? , you can modify the parameter settings of the virtual directory.
Supplement: server introduction
A server, also known as a server, is a device that provides computing services. Because servers need to respond to service requests and handle them, in general, servers should have the ability to undertake and guarantee services.
The server consists of processor, hard disk, memory and system bus. , similar to the general computer architecture. However, due to the need to provide highly reliable services, it needs higher processing capacity, stability, reliability, security, scalability and manageability.
In the network environment, according to the different types of services provided by servers, it can be divided into file servers, database servers, application servers, WEB servers and so on.
Related reading: What are the common server problems?
1. System blue screen, frequent crash, restart, slow response.
The server is very similar to our ordinary computer in both hardware structure and operating system. So, just like our computer, it may be infected with viruses, and it may also lead to crashes, blue screens, restarts and other failures due to system vulnerabilities, software conflicts, and hardware failures, and it may also lead to slow response due to too much junk cache information.
2. Remote desktop connection exceeds the maximum number of connections.
Because the server allows two connections by default, if you forget to log off after logging in and close the remote desktop directly, the server will recognize whether you are logging in or on the server side. In this case, the most common thing is to restart the server, but if it is the peak period, the loss caused by restarting the server is obvious. Then at this time, you can use the mstsc/console command to force login. Open it? Run? Box, type? Mstsc/v: xxx.xxx.xxx (server IP)/console? , you can force login to the remote desktop.
3. How to clean files that cannot be deleted?
In this case, it may be that the file is still running, so you can restart the deletion, or run CMD, enter the folder name that arrtib-a-s-h-r wants to delete, and finally enter the folder name that del wants to delete, and you can delete it. After running this command, it cannot be recovered. Please use it with caution.
4. System port hidden trouble
For the server, the first priority is to ensure stability and security. So we just need to ensure the most basic functions of the server, just like the default ban on sound cards. We don't need too many functions, and we don't need too many port support. For example, you can block some unnecessary and risky ports. Some necessary and risky ports, such as ports 3389 and 80, can be set as non-special secret ports by modifying the registry, so that the security risks of server ports no longer exist.