Recently, a server is getting overwhelmed (Millions of traffic), and the response interval is getting longer and longer. After explaining the symptoms to a dedicated server technical friend, he thought it was the cause of the NIC, after adopting his opinion, I thought that the operating system of the server was Windows2003, and I planned to simply replace the system. After all, the performance of the Windows system was not very good under heavy traffic.
With this plan, I began to learn about this. I am not very knowledgeable about servers. At the beginning, I had a vague selection of new systems, located in BSD and Linux.
In the BSD system, the candidate systems include FreeBSD and OpenBSD. in Linux, the candidates include Redhat as and centos.
After reading a lot of information on the Internet, I learned that the BSD system is more stable and secure than the Linux system, but the disk system performance is too weak.
My server provides the image service, which has hundreds of millions of images on it. There is no doubt that it has higher requirements on disk performance. Therefore, the first step is to choose a Linux system.
I have had two RedHat usage experiences, which was a long time ago. One was early learning, simple access to the Linux system, and the other was a C language in RedHat.AlgorithmExercise. since it was a long time ago and the learning focus was completely absent at that time, the knowledge of Linux was still blank. therefore, RedHat and centos, two well-received Linux server systems, are similar to me in terms of familiarity.
I finally chose RHEL 4, because I soon finished it on the Internet with thunder, and then started my Linux learning journey on the virtual machine.
Because it is installed with Linux, I use VMware as a virtual machine. The version used is vmwareworkstation v6.0. the general process for installing RHEL on a virtual machine is shown below.
First, you need to create a new virtual machine through vmw. This step is very simple. File-> New-> virtual machine, the next step is the next step. When selecting a client, because Linux is to be installed here, the OS I selected is Linux, and the version is rhel4. note that in the disk capacity setting step, the option "allocate all disk space now" is provided. This check box is not selected by default, in this way, the space occupied by the virtual machine will increase as the system file of your virtual machine increases. If checked, the disk space specified above will be allocated to your virtual machine immediately (that is, the folder you allocate to the virtual machine will generate a placeholder file with the same size as the maximum disk capacity you set). This operation takes some time, but it can improve the performance of your virtual machine.
After the virtual machine is created, you can start to install linux. This process is not complicated. depending on whether you are using a CD or an image file to install Linux, you only need to put the CD-Rom into the CD drive or in the hardware settings of the Virtual Machine and set the CD-Rom to ISO for startup, select the ISO file of the boot CD. start the VM and select the graphical installation interface. The subsequent installation is very simple.
After all the CD files are installed in sequence, reboot them again, and then make some settings to officially enter the main interface of RHEL. Now, the first step to learn Linux has been taken.