Linux system maintenance and installation of architectural design -VMWare WorkStation CentOS7.7

Linux system maintenance and installation of architectural design -VMWare WorkStation CentOS7.7

3.1 Linux system operation and maintenance Environment Overview

CentOS systems typically running on the server, and if you want to use on a personal computer CentOS, only need to prepare a system image, domestic users can go to download Ali cloud mirror station, the latest version of CentOS7 series CentOS7.7, of course now there CentOS8, but VMWare WorkStation15.5 does not support CentOS8 so choose CentOS7.7. And CentOS7 series relative to CentOS8 series more mature, stable, is the mainstream version of CentOS.
Ali cloud mirror station

CentOS8

Can not read the installation image CentOS8

If the personal computer is a Windows can use VMWare WorkStation to install CentOS7.7, if the personal computer is a Mac, you can choose to install Parallels Desktop CentOS7.6.

Why WMWare WorkStation or Parallels Desktop to install CentOS instead of directly installed on a personal computer it? There are two reasons, first, CentOS mainly for server operating systems, does not apply to personal office, there is by using the Parallels Desktop or VMWare WorkStation use CentOS, and direct installation of almost no difference on a personal computer. Even if the virtual machine goes down, it will not affect the host to use (Windows10 or is macOS10.15.1) of.

In summary, this installation demonstrates the environment.

software version
Windows10 Windows10 1903
VMWare WorkStation VMWare WorkStation 15.5.
CentOS CentOS7.7

3.2 Create a virtual machine using VMWare WorkStation

If you downloaded and installed the vmware VMWare WorkStation from the official website, you can now start creating virtual machines, this process is like going to buy a computer Jingdong process.

1. Start VMWare WorkStation
Start VMWare WorkStation

2. Create a virtual machine
Create a virtual machine

3. Select type Typical Configuration
Typical type configuration

4. Select CentOS7.7 mirror path
also check later to install the operating system, because we want to personalize custom hardware
CentOS7.7 ghosting pathway

5. Select a guest operating system
Select a guest operating system

6. Set the virtual machine name and the installation path
Set up a virtual machine name and the installation path

7. Set the disk capacity
and virtual disk storage as a single file
Set disk capacity

8. Custom hardware
default of a CPU, memory 1G, where you can do customization according to the configuration of the physical machine
Custom Hardware

CPU core 6 is set to two
memory to 8G
using ISO image file CD / DVD (IDE), points to the directory where the image CentOS7.7
network adapter bridge mode
to remove the printer

Hardware configuration with the related physical machine

Custom Hardware
Custom Hardware

Here to buy a computer from Jingdong process is complete. Bought the equivalent of a 2 CPU, single 6-core, memory, 8G, 200G disk of the computer, while already set the path CentOS7.7.
CentOS7.7
CentOS7.7

3.3 VMWare WorkStation mounted CentOS7.7

1. Turn on the virtual machine 2.Install CentOS7 mouse click on the virtual machine window, and then select Install CentOS7 up and down keys of the keyboard, and then press Enter, wait a moment, the system will start the installation 3. Select the installation language 4. set the time zone set here in Asia / Shanghai, if the wrong time, you can click the up and down arrows to change the time
Open virtual machine


Install CentOS7

Select the installation language

Set the time zone

Asia / Shanghai

5. SOFTWARE SELECTION selected software installation packages
selected by default to minimize installation production environment selected to minimize the installation, taking into account here for beginners, so select Server With GUI, and the mounting Development Tools.
Software installation package selection


Server With GUI

6.自定义分区 INSTALLATION DESTIATION
默认是自定义分区
Custom Partitioning
这里选择自定义分区
Custom Partitioning
点击左上角的Done,然后选择标准分区
Selection criteria Partition
Selection criteria Partition

然后创建挂载点
点击左下角的加号即可创建挂载点

首先创建根分区,对应的挂载点是系统路径/,分区的磁盘容量是50GB
Root partition
Overview of the root partition
然后再创建boot分区,对应的挂载点是系统路径/boot,boot分区的磁盘容量是500MB
boot partition
boot partition
然后再创建data分区,对应的挂载点是系统路径/data,data分区的磁盘容量是30GB
data partition
data partition
最后创建swap分区,swap分区的容量是4GB
swap partition
分区配置一览
Partition Configuration List
手动分区配置完成以后点击Done
Done
然后同意更改即可
Accept Changes

7.配置网络
Network Configuration
开启网络并且设置主机名为ittimeline.net
Network Configuration
配置网卡
NIC configuration
IPv4选择自动配置
IPv4 select automatic configuration
8.禁用KDUMP

KDUMP会记录内核崩溃的信息,给RedHat厂方的人提供排查问题的依据。
只有RHEL才会提供该服务
Enable KDUMP
禁用KDUMP
Disable KDUMP

9 开始安装
start installation

10.设置root用户密码
Set the root user password
Set the root user password

CentOS安装完成后重启系统
Reboot the system

3.4 CentOS7.7首次启动

1.安装配置

选择内核版本
Select the kernel version

同意License
同意License

同意Lincense

创建普通用户
创建普通用户
创建普通用户

完成安装配置
完成配置

2.登陆系统
点击之前创建的普通用户guanglei
登陆系统

输入设置的密码登陆系统
输入设置的密码

3.设置系统语言
设置系统语言

4.设置键盘
设置键盘

5.设置隐私策略
设置隐私策略

6. Log online account
if you want to log in to Google or Microsoft could enter the account information to directly select Skip to ignore me here in the upper right corner
登陆在线账户

Everything is ready to start using CentOS
Start Using CentOS Linux

system interface
系统界面

Right-click Open Terminal to open a terminal and enter the cat /etc/redhat-relasecommand to view system version
查看系统版本

3.5 VMWare WorkStation Snapshot

Snapshots can state storage systems, systems that are experiencing crashes, you can use the snapshot function to return a specified state.

First, take a snapshot set snapshot information
拍摄快照

CentOS7.7初始化安装

If the system fails to use, you can use the snapshot to restore CentOS7.7 initial installation, and do not have to repeat the installation system, which saves a lot of time.
恢复到快照

3.6 VMWare WorkStation clone

In high concurrency scenarios, servers are generally clustered deployment, if you want to simulate a cluster of servers on a personal computer, you can use on VMWare WorkStation cloning features they offer, realize quickly create virtual machines.

First, the current virtual machine must be in order to carry out cloning operation in the closed state, and then select the virtual machine CentOS7.7, select Manage -> Clone.
克隆

Clone Virtual Machine wizard
克隆虚拟机向导

Clones were selected source
克隆源

Clones type disposed clone_vm_name path and wait cloning
选择克隆类型

设置克隆虚拟机名称和路径

等待克隆

Cloning is complete
克隆完成

At this time we have created two virtual machines.
CentOS7.7和CentOS7.7_Clone

Guess you like

Origin www.cnblogs.com/ittimeline/p/11906197.html