Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Virtual machine and Centos installation, Xshell configuration and virtual machine connection

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Chapter 1 virtual machine and Centos installation, Xshell configuration and virtual machine connection 1.1 creation of virtual machine (figure)

1.2 services.msc service settings for virtual machines

Some computers cannot fully open VMware Authorization, DHCP, NETWORK, Arbitration, Remote and other service protocols after installing virtual machines, so they have to be modified:

1. Win+r = > services.msc enters the service option

2. Then click the figure below to enable several services to start and make them automatic.

1.3 centos system installation

Select the first column to install / upgrade a new system

Centos selects the installation language of the system, and here you choose English.

Choose the keyboard style, here we choose US.English.

Select the installation mode, here we select the basic equipment (Bisic Sterage Devices)

Name the linux system

Select the system time, we choose Shanghai, and remove the System clock uses UCT phenomenon to ensure that the virtual machine system time is consistent with the host time.

Select the disk installation partition method. Here we choose the last item Create Custom Layout (custom partition).

According to the demand, we divide the disk into three sections: / boot (boot partition), swap (virtual swap partition), and / (root partition).

Among them, boot partition / boot function: boot installation system and Shell command parsing, accounting for 200m disk space

Swap virtual swap partition: in the case of insufficient memory, the virtual part of the disk is stored as virtual memory, and its partition size is regular:

When the server memory

< 8G,swap=1.5倍内存大小。 内存 >

8G, dint swapped 8G.

Root partition "/" when there is no important data to backup and store separately, we assign all the remaining partitions of the disk to the root partition.

The system installation type selection defaults to the first Desktop, so we need to select the third Minimal (the easiest installation) and check Customize now to configure the relevant toolkits now.

After the configuration is completed, click Next to enter the system automatic installation, and then restart the system.

1.4 Virtual Network Card configuration of Centos 6.8linux system

Enter setup eth0 in the system to enter the Choose a Tol menu, and select column 3 Network configration to set the eth0 parameters of the network card:

Select the first device configuration

Turn on the On boot option and click OK to take effect and return to the menu

Select the Save menu to jump to the menu

Select Save&Quit to complete the configuration of the wireless virtual network card

Supplementary command:

Ifupeth0 enables unlimited virtual network card eth0

Ifconfig looks at the IP address of the virtual machine setupeth0 configuration wireless network card

1.5 Xshell parameter setting and connection to the virtual machine

Parameter modification screenshot

1.6 Server partitioning scheme

1. In the general production scenario (work) scenario, a node server in the network cluster architecture (many servers with the same function), that is, servers with multiple or unimportant data, is recommended as follows:

/ boot: store the bootstrap Centos6 to 200m

Swap: virtual memory, 1.5 times the memory size, that is, 512, 1.5, 768

Working: physical memory

< 8G,swap的大小为内存*1.5 物理内存 >

The size of 8G Magneto swap is preferable to 8G.

/: root, which stores all the data, and the remaining space is allocated to the root (/ usr, / home, / var and other partitions, such as the C disk of windows, where all the data and system files are put together)

two。 Databases and servers with storage roles, that is, there are a large number of important data services. It is recommended that the partitioning scheme is as follows:

/ boot: store the bootstrap Centos6 to 200m

Swap: virtual memory, 1.5 times the memory size, that is, 512, 1.5, 768

Working: physical memory

< 8G,swap的大小为内存*1.5 物理内存 >

The size of 8G Magneto swap is preferable to 8G.

/: root, 50-200g, only store system-related files, website business data is not placed here

/ data: size of remaining disk space, storage of database and important data.

Note: in fact, this partition scheme is to partition the important data separately, which is convenient for backup and management.

3. Large portals, zoning schemes for large enterprises

/ boot: store the bootstrap Centos6 to 200m

Swap: virtual memory, 1.5 times the memory size, that is, 512, 1.5, 768

Working: physical memory

< 8G,swap的大小为内存*1.5 物理内存 >

The size of 8G Magneto swap is preferable to 8G.

/: root, 50-200g, only store system-related files, website business data is not placed here

The remaining disk space is not partitioned, reserved, and will be allocated to the department in the future.

The sub-plan is more suitable for large enterprises with many lines of business and uncertain demand.

4. LVM: resize partitions online

1. Poor performance. 2. Unnecessary (general hard disk partitions have taken into account the operation of the company, and disk partitions have been planned in advance)

5) operating system soft raid

This disk space treatment is best avoided because it has the following two deficiencies:

1. Poor performance and no redundancy

2. Hardware raid is used in the production scenario.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report