Description:
1.
This document is not a directory, to welcome you all to enjoy.
2.
Blue word configuration commands, green word annotation command, the command sometimes when too dense, would not have marked blue.
3.
This document is for basic operation course, does not involve the configuration of network services (such as
web
servers, etc.)
4.
Note: All operations in this document please be practiced in the virtual machine,
please do not operate directly on real server
!
Date: 2020, at 15:10 on February 25
————————————————————————————————————————————————————
0
, download and install
CentOS 7
system
Download system installation image
. 1
:
http://mirrors.163.com/centos/7.7.1908/isos/x86_64/
Download the first
2
Ge, file size
4G
that
Installation image Download
2
:
http://mirrors.aliyun.com/centos/7/isos/x86_64/
Download the first
2
Ge,
4,664,066,048
bytes (
4G
and more) that
Downloaded to the local disk, the installation is recommended for beginners to the virtual machine, the virtual machine software can use the following
2
Ge (choose one)
VMware Workstation
Oracle VM VirtualBox
1
This tutorial uses
VMware Workstation
virtual machine software, download and install, one-month trial.
Double-click the desktop icon to enter the main interface:
Before creating a new virtual machine, create a folder on the disk, just named (as in
D
create a name on the plate
As
VMcentos7
folder), then this folder virtual disk is a virtual machine Next we want to create.
Virtual machine is out of the virtual computer, just create a blank, you can add disks, network cards, CD-ROM to it,
The CPU
, memory and other computer resources when virtual machine machine resources allocated to it will not be used when the virtual machine open
Machine, these resources are used by it. These resources are common property, so the physical machine that our own physical machine
You can not be too bad.
1.
Click on Create a new virtual machine on the main page
2.
typical configuration, the next step
3.
Select "install the operating system later", the next step
4.
Select
the Linux
, version
CentOS 7 64
bits Next
The
virtual machine name with the default on the line, the location is
D: \ VMcentos7
, that file we created earlier clip
6.
The maximum disk size allocated
20GB
is enough, the following option to split the file into multiple virtual machines, so that our physical machines
The disk will not be used immediately
20GB
, but the virtual machine how much our physical disk was much used up,
Dynamic allocation. Click "Next"
7. The
parameters of the virtual machines created by our figure is, click "Finish"
8.
We need to give this virtual machine installed
Centos7
system, how to install? Through its virtual drive, that is,
CD / DVD
this equipment, our system previously downloaded image file into the herd. Click the virtual machine's
CD / DVD
9.
In the pop-up to the virtual machine settings, click on the left side of the
CD / DVD
, choose the right
ISO
image file, and then Liu
Browse, find us before downloading the installation image file on the local disk, open. Then the lower right corner click "OK"
10.
Click on "open virtual machine" operating system installation (installation and true principles similar virtual machines
Just create a blank hard disk, so the virtual machine only from the
DVD
starts, and then install the system to a virtual machine's virtual hard disk
in)
11. The
first use of the interface of FIG mouse clicks, when the mouse enters the console, press the button
↑
, select
the Install the CentOS. 7
,
the transport
12.
After the carriage return, there will be a character when the console output, and real equipment installation system as
13.
When appears the figure below, you can choose the language of the system, with the default
English
on the line, click on the bottom right corner
Continue
14.
mouse click
SOFTWARE SELECTION
, select the version you want to install
15. The
recommended minimum installation
Minimal the Install
, then click the top left corner
Done
16.
Then click
INSTALLATION DESTINATION
select the disk and partition to install disk
17.
shown in the following figure
20GB
disk is that we assign to the virtual machine's virtual hard disk
18.
Then click the disk, the bottom line of text prompts not selected any disk, do not panic, click again
19.
Then you can in
Other Storage Options
Select below
the I Partitioning by Will the configure
, click
Done
20.
Then enter the partition interface, red area of the lower left corner displays the available space for the
20GB
, click the center
LVM
of the line
20.
Selection criteria Partition
Standard Partition
21.
Then click the plus sign in the lower left corner of the partition interface
+
add a partition
22.
In the Add partition dialog,
Mount Point
Select
/ boot
size is
300M
, then click the
Add mount point
23.
At this time we see one more partition interface
/ boot
partition, lower left corner of the red area shows the available space for
19.71G
24.
Continue adding partitions, bottom left, click the plus sign
+ Mount Point
to
/
represents the root partition size
16G
(not to
The remaining disk capacity is used up, you can stay
2
Ge
G
to experiment)
25.
Back to the partition interface, visible just create
2
partitions, then click the top left corner
Done
, click
2
times
26. The
pop-up boxes, OK, right corner
Accept Changes
27.
Return to the main configuration screen, click on the lower left corner of
the Begin Installation
, start the installation system
28.
During the installation process, we can create
Root
password, click
ROOT PASSWORD
29.
After entering your password, click on the upper left corner
Done
, password strength is not enough to click
2
times
30.
Then you wait for the system installation is complete
31. The
installation is complete, click on the bottom right corner
Reboot
restart.
32.
After the restart, there are
two
rows startup items can be selected, by default the first line, a carriage return, the system start
33.
Finally, enter the system, enter the user name
root
password for the front of the first
29
that steps to create a
root
password, enter,
enter the system. (When a password is not displayed on the screen, just input)
Minimizing installation of
CentOS
system only command-line interface, no graphical interface. After entering a user name and password, the initial
The row of characters displayed command-line interface (the pre-cursor) is called a command prompt:
[root@localhost ~ ]#
At the command prompt, enter the command can perform various operations, specifically how to operate what this program is to teach the next.
To shut down the system, then enter
init 0
Enter on the line.