001. Installation of enterprise-level CentOS7.6 operating system

1. Software preparation#

2. Create a virtual machine#

After selecting the system image, if you choose Install the program CD image file, the system will be installed automatically. Although it is convenient, it will install too many services and programs, and will automatically partition, so we choose Install the system later to come Install the system manually.

System version Memory required for installation Memory required for startup
CentOS-5 256M 100M
CentOS-6 At least 512M, recommended 1GB+ at least 512M, recommended 1GB+
CentOS-7 at least 512M, recommended 1GB+ at least 512M, recommended 1GB+

If the memory is smaller than the minimum recommended memory during installation, an error may be reported. In addition, it is recommended to set a larger value during installation, such as 2GB, and then adjust it according to the local resource usage.

The following briefly introduces network types:

3. Virtual host network configuration#

4. System installation#

4.1 Enter the system installation guide interface##

Tip: Mouse switch between virtual machine interface and Windows interface: Ctrl + Alt

4.2 Modify the form of the network card named eth0 (consistent with CentOS7 before)

4.3 Choose language, it is recommended to choose English##

If you cannot see the Continue button due to resolution issues, you need to enter full screen mode:

4.4 Installation Summary Page (INSTALLATION SUMMARY)

4.5 Configure system time zone and time (DATE&TIME)

4.6 Select additional language support (LANGUAGE SUPPORT)

4.7 System software package selection (SOFTWARE SELECTION)

According to experience, the principle of minimization should be adopted when selecting the installation package, that is, things that are not needed or not sure whether they are needed are not installed, that is, "Minimal Install", which can ensure system security to the greatest extent.

If some components are missing during the installation process, or other partners did not select during installation, then after the installation is complete, you can add the uninstalled components in the following ways:

The commands for installing "Compatibility Libraries", "Base" and "Development tools" are:

yum group install "Compatibility libraries""Base""Development tools"

The commands for installing the two components "Debugging Tools" and "Dial-up Networking Support" are:

yum group install "debugging Tools""Dial-up Networking Support"

You can view the installed packages through yum groupinfo [package-name].

4.8 Configure network and hostname (NETWORK&HOSTNAME)

4.9 Select disk partition, configure partition (INSTALLATION DESTINATION)

Introduction to Linux Disk Partition Knowledge

Disk partition naming and numbering

  1. Named after the device name
    In the Linux system, disk devices correspond to special files in the system. These special files are placed in the "/dev" directory. The device names corresponding to different devices are as follows:
  1. Use number
    In order to indicate different partitions, numbers are usually used for numbering, such as:

When numbering the partitions, the numbers 1-4 can only be reserved for the main partition or the extended partition, which will be created by the system during installation

Click "Done" to enter the partition setting page:

Description:

LVM means logical volume management, which can dynamically adjust the size of the partition that has been set, provided that all partition formats need to be made into LVM partition format in advance, that is, the partition label is 8e, and the partitions in the enterprise environment are generally based on demand The realization of the plan is good, there is very little need for subsequent adjustments, and there is still a certain gap in the performance of LVM compared with standard partitions and hardware RAID cards. Therefore, if there are no special requirements, LVM functional partitions will not be selected, but Use the better standard partition mode "Standard Partition".

Linux system's basic requirements for partitions

Linux partition scheme in enterprise production scenarios

  1. Solution 1: For a node server partition in the website cluster architecture, the data on the server contains multiple copies (other nodes also have) and the data is not important. The recommended partitioning method is as follows:
  1. Solution 2: For the server partition of the database and storage roles, the server's business contains a lot of important data. The recommended partitioning method is as follows:

The second option is to partition important data separately for easy backup and management

  1. Solution 3: Partition the servers of large websites or portal-level enterprises

Reserve the remaining disk space and no longer partition it. In the future, it will be allocated to different user departments, and they will be subdivided according to their needs. This partitioning scheme is more flexible and more suitable for large enterprises with more business lines and uncertain needs.

  1. Not recommended partition scheme:
    Manually partition /usr, /home, /var, etc., so that too many additional partitions are allocated, which are unnecessary and cause management troubles. This partitioning method is not recommended

This article uses scenario one to partition:

Click "Done":

Note: Check if all partitions (/, /boot, swap) are Standard Partition.

4.10 System security related##

4.11 System installation##

Click "Begin Installation":

Set the password of the root user:

Set the password of a common user: It prompts that the password is not strong enough, you need to click "Done" twice to force use

Then wait for the system to be installed. When the Reboot button appears, it is already installed:

Then click the Reboot button to restart. The restart process does not require any operation, just wait.

5. Operation and configuration after system installation#

5.1 Login to view basic information##

Information on the login interface:

Manually view the system version information# If there is _64, it is a 64-bit operating system# If there is i386/i686, it is a 32-bit operating system [root@node01]# uname -m x86_64 [root@node01]# uname -r 3.10 .0-957.el7.x86_64 [root@node01]# uname -a Linux node01 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux # The following command If there is a result, it is a 64-bit operating system [root@node01]# ls -d /lib64 /lib64

5.2 Check network configuration##

5.3 Troubleshooting method for the system unable to connect to the Internet##

To replace a certain configuration in this file, for example, the command to change ONBOOT=no to ONBOOT=yes is:
sed -i 's#ONBOOT=no#ONBOOT=yes#g' /etc/sysconfig/network-scripts/ifcfg-eth0
View a certain configuration, such as the command to view the value of ONBOOT configuration:
grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-eth0
Restart the network card after modification:
systemctl restart network

5.4 Use the nmtui command to set the network card##

If there is a problem with the server's network, you may need to reset the network card information. You can modify the configuration by modifying the file /etc/sysconfig/network-scripts/ifcfg-eth0. Here is a method of setting using the UI interface.

5.5 Virtual machine save snapshot##

Recommended Posts

001. Installation of enterprise-level CentOS7.6 operating system
Centos7.6 operating system installation and optimization record
Installation and configuration of JDK in CentOS 7 system
Centos7 silent installation of Oracle11g
CentOS environment installation of Docker
Detailed installation steps of CentOS6.4 system in virtual machine
Centos7 installation and configuration of Jenkins
Analysis of Hyper-V installation CentOS 8 problem
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
CentOS 8 installation of MariaDB detailed tutorial
Installation under centos6.9 of jenkins learning
CentOS 7.X system installation and optimization
2019-07-09 CentOS7 installation
centos7_1708 installation
CentOS 7 system installation and configuration graphic tutorial
Graphic KVM to install CentOS7.6 operating system
Installation and use of Mysql under CentOS
Centos-6.5 installation and deployment of LNMP environment
Linux kernel compilation and CentOS system installation
Installation and configuration of redis under centos7
Centos7 installation and deployment of gitlab server
Centos7 installation and deployment of Airflow detailed
Centos5 installation guide
Python - centos6 installation
centos system management
Ubuntu system installation
CentOS7 docker installation
ubuntu-server system installation
Summarize the knowledge points of Centos7 system reinforcement
Some basic optimizations of Centos6.9 system (updated on 2018/04/19)
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
Non-Root installation of Microsoft R Open under Centos
From installation to entry of FastDFS under Centos7
CentOS online installation RabbitMQ3.7
01 CentOS 7.6 switch system language
Installation and cracking of confluence6.3 operation records under Centos
CentOS7.5-1804 system kernel upgrade
Detailed explanation of Centos 7 system virtual machine bridging mode
Zabbix 2.2.20 installation details (Centos6.9)
Installation and cracking of Jira7 operation records under Centos
Centos source installation Python3
Ubuntu and RHEL dual Linux operating system installation tutorial
lamp (centos7) installation lamp environment
Centos8 (minimal installation) a new installation of Python3.8+pip method tutorial
VirtualBox install CentOS system
Centos7 mqtt cluster installation
Mysql8.0.15 installation configuration (centos7)
Linux notes (1): CentOS-7 installation
Redis3 installation under Centos7
CentOS online installation RabbitMQ3.7
Ubuntu dual system installation
Online expansion of file system by LVM under Centos7
Docker CentOS installation method
Detailed tutorial on installing JDK8 on Linux system (CentOS7 installation)
Linux CentOS 7 installation tutorial
Centos7.2 system optimization original
Centos system process management
Centos7 docker installation details