1. Preparation before installation:
1.1 download centos-6.8-x86 on the official website_ 64-bin-DVD1. iso
Download address:http://archive.kernel.org/cen…
1.2 open VirtualBox virtual machine and click new
Name the virtual machine and select the type and version as shown in the figure:
Click next
1.3 select the memory size, 1g by default
1.4 select create virtual hard disk now
1.5 select the type of virtual hard disk. VDI is dedicated to VirtualBox, and vmdk can be common to VM. Here we choose VDI
1.6 select dynamic allocation of disk capacity
1.7 select the file storage location and capacity, and click create to finish
2 formal installation
2.1 select the newly created virtual machine and click the “start” button
2.2 select the downloaded CentOS image file
2.3 after startup, enter centos6 8, select the second basic graphics card driver installation system
2.4 whether to detect the computer media, select skip to skip the detection
2.5 skip the hard disk detection, enter the graphical installation interface, and click next
2.6 select the language used in the installation process and English
2.7 select keyboard type, American keyboard
2.8 use the default “basic storage device” and click [next]
2.9 select whether to delete the data in the virtual disk, and select “yes, ignore all data”
2.10 enter the host name and configure the network. The network can be configured after the system installation is completed
2.11 choose the time zone, here we choose Shanghai
2.12 setting the root user password
2.13 the next step is to partition the disk. It is recommended to select custom
2.14 select Create to partition
2.15 here we choose to create a standard partition (production environment professionals recommend logical partitions)
2.16 create swap partition, which has no mount point.
It is suggested on the Internet that the size of the swap partition is generally twice the memory, which actually makes no sense. This is a misunderstanding. In the past, the memory of the old machine was small, but now the production server is generally 16g or 32g memory. Here we set 4G, and the production environment is up to 8g or 16g
2.17: we have set up a swap partition, and then continue to create it
2.18 create a root partition. We create all the remaining space into a root partition.
In other tutorials, Linux needs to create many partitions, such as root partition, boot partition, home partition, etc. in fact, it is not necessary. Because if there is only one root partition, other directories are actually under the root partition. If we create a separate partition for boot or home, it will be hung on the partition separately. If we do not create it, it will be all on the root partition. Therefore, we only need to create a root partition. Unless your upper environment has special requirements, it is not necessary to separate it separately
2.19: continue to the next step after the partition is created
2.20: the system creates and formats each partition
2.21: select “write changes to disk” to write to the hard disk
2.22 set boot by default (default MBR boot mode)
At the same time, you can add a password to the boot to prevent someone from entering the single user mode through boot and clearing the root password. It will be safer. Generally, we don’t add it
2.23 choose the software we installed. For beginners, it is recommended to choose desktop desktop environment, which will install graphical interface. Of course, it can also be changed later
2.24 start installation
From the installation progress, you can see the release version “El6” of red hat, and you can see that CentOS actually comes from red hat
2.25 after installation, prompt us to restart
2.26 restart the system
3 first entry into the system
3.1 there will be some basic settings for the first startup. Let’s click next
3.2 agree to copyright information, next step
3.3 create a user. There is already a root user in the system, but try not to use the root user at ordinary times. Here is to create an ordinary user
3.4 select the time. It is recommended to check the synchronization with the network time in the production environment. Since I don’t have the network environment, I won’t check it here
3.5 configure kdump. Because I am a virtual machine, the system prompts me that there is not enough memory. If not configured, it will not affect me. OK to continue
Kdump helps us copy the memory at that time when the system crashes, deadlocks or crashes, and can be analyzed. Generally, we don’t analyze it. We can send it to red hat professionals. After the configuration is completed, we restart it
3.6 enter the login interface to complete the installation