About the virtual mainframe under Linux.
We know that the Linux operating system is currently widely used on the server. is the virtual host under the Linux operating system what we often call a Linux virtual host? In fact, technically speaking, it's a virtual environment that's installed on Windows, and it's actually just a file. Let's look at some things about Linux and virtual hosting. First, let's look at the advantages of a Linux virtual host.
Advantages of Linux Virtual hosts:
1, open the idea of opening source code, self-improvement or customization;
2, free of the spirit of freedom to use;
3, perfect network function, built-in TCP/IP protocol;
4, the real sense of multi-tasking, multi-user operating system;
5, fully operating in the protection mode, fully utilize the cup performance;
6, advanced memory management mechanism, more efficient use of physical memory;
7, stability, safety, high efficiency;
8, with the UNIX system at the source code level compatibility, conforms to the IEEEPOSIX standard 9, supports dozens of file system formats. 10, equipment independence, good portability.
Linux-based virtual host building:
1 Install the Webmin.
2 Enter Webmin to install the Virtual-host module.
3 Server Install the module path in bind 9,webmin should also be modified accordingly.
4 Follow the Help manual content, 1) first recompile apache2 Plus./configure–prefix=/usr/local/apache/–enable-suexec2) to configure Apache, mainly including paths to modify HTTPD, etc. 3) Plus namevirtualhost IP LoadModule suexec_module modules/mod_suexec.so.
5 Enter Http://ip:10000/virtual-host, follow the prompts, remove some unused modules and then run the module successfully.
6 Add new Virtual-server, fill in the corresponding domain name, account information, click OK.
Linux Virtual Host configuration:
1. IP address-based virtual host configuration:
Step one: Set the respective IP address for different network cards in the host;
Step two: Vim/etc/httpd.conf in the httpd.conf configuration file, set up a different configuration section for each virtual host;
Step three: Create directories and home page files for different virtual sites;
Step four: Restart the Apache service. You can browse to a different page by using ELinks or by entering a different IP address in your browser.
2. Name-based virtual host configuration:
Step One: Modify the configuration file httpd.conf in the Virtual Host configuration section;
Step Two: Create directories and home page files for different virtual sites;
Step three: Restart the Apache service.
- This article is from: Linux Tutorial Network
About the virtual mainframe under Linux.