Installation of the Linux:centos 7 system

Source: Internet
Author: User
Tags server memory

I believe I have read the blog post that I wrote the first blog post is the CentOS 7 system installation, but installed in the virtual machine, but also directly loaded image files into the, but this time I will be installed through the PE, to verify that the next PE can be used to install Linux system, In this issue, we will start the Linux system installation journey. (Note that my final summary in this issue is very important.) )

Installing the CentOS 7 system

System Image Download:

Home of the system: http://www.xitongzhijia.net/linux/

Baidu Cloud Link: Https://pan.baidu.com/s/14WQUBHLHyouazvFftuWc7Q

System Installation

Then we will install the system, first into the PE, sub-district. (I partition the partition table type is MBR, can be GPT (if your computer motherboard support UEFI), but MBR compatibility is good, so I choose it, not to mention I do not have more than 2T capacity of the hard disk, haha. )

If you are not satisfied with the drive symbol when you split the plate, you can specify the drive letter, or you can repartition it. (In order to save time I will not deal with, in fact, only one district is OK, as you like, but to reserve more than 1G of free capacity. )

As for why you should reserve 20G of free capacity, this is to pave the configuration when installing the CentOS 7 system below. (So it is recommended that you read through my article before installing.) )

Look at the top, please note that according to the partition situation, where C is divided into 12G, the second disk is the E-disk divided by 6G, the remaining 20G is the free capacity, until the installation system will be used.

If I were to install a dual system or a multi-system, the CentOS 7 system would have to leave at least 20G of free space capacity.

Then use the old Peaches PE installed tools to try to install. (As for why the partition situation is different, this is because I was very early cut the figure, but I now cut the figure, no way, this article I have been a week of pruning, please support it!) The following diagram and inconsistent or inconsistent with this is the case, it is important to see my text description. )

This is to extract the files, this is the software can not extract the image file.

If you mount the image file into the virtual CD drive, you cannot take the method of loading the virtual optical drive, which can cause damage to the USB stick easily. (This kind of loading optical drive method is not recommended, it is best not to try, this is only a counter example.) )

So the old Peaches PE installed system and Winntsetup is not able to install such an ISO file, why?

Through the above information, found that there is no Gho file and Wim file, which is not installed in the PE here, so we take two installation system methods, one is the production method, the second is the direct method.

Production method

is to use the latest version of Uitraiso (soft disk pass) to make the system boot disk. (Must be the latest version of the soft disc pass)

Select the USB flash drive to write the ISO file, you can make the CentOS 7 system boot USB flash drive, and then restart press the Flash drive button to select the USB flash drive directly into the CentOS 7 system installation. (Of course, if it is not possible to install the interface, you can try to hide the boot partition into a no, anyway, I have not tried, I use the direct method to install the CentOS 7 system, the general situation is to be able to enter the system installation interface normally.) )

Direct method

Reboot directly, re-enter the old Peaches Select interface and select "Run Custom Image".

If you encounter the above situation, it may be a bit of trouble, we can copy the image ISO file to a disk other than the system disk to identify the ISO file, re-enter the PE. (Of course, if you can directly find the image file above the best, not found to see the following operation, as for the found, please ignore the following in the PE operation.) )

The copy process is quick, and after the copy is restarted, go to the old Peaches select interface and go to "Run custom image" again.

Look, we'll find the mirrored ISO file in the Myext folder that you just copied from the USB drive to the D drive, and enter to run it.

Move the cursor to the top first line via the keyboard arrow key, which is install CentOS 7.

Normal search ... (Preparing for installation package before installation)

The CentOS 7 system is officially installed

After that, we will go to the language selection interface, we choose Chinese.

Select Software Selection.

These are based on the needs of your job requirements to decide, here I choose the server with the GUI, OK.

Choose the installation location, this is very important, if not selected, it will automatically help you to leave 20G of free space to partition, but below I teach you how to customize the partition.

Select 20G disk, I want to configure the partition, complete after entering the following:

We typically use LVM to create mount points and click the + sign to create a mount point. (see, the 20G free capacity we've left here is where you create the mount point and the system installation (space).) )

boot partition (boot partition) Just give it 200MB enough. (Because the minimum is to 200MB)

Swap partition We give 2048MB, the swap partition is also known as the virtual partition (that is, the equivalent of what we normally call running memory), unable to write data. is generally given to the memory of 2G, memory is greater than 4G, the recommended maximum to 8G, twice times the memory is limited, if the server memory is 256G or 128g,2 times will waste a lot of space.

After that we can see that there are just two new mount points, note that the file system is XFS.

We then enter to use the rest of the space. (All the space left to the root directory, directly do not enter anything, directly add the mount point, will be all the space to the root directory.) )

After clicking Finish, you are configuring the partition and clicking Install.

We need to set the root password in the process of system installation, why? Because root is equivalent to your system's super administrator, can any operating system and so on, as for the creation of users temporarily.

Personalize after a reboot.

Select the first item.

Click Forward twice in succession, and come to the following select address, feel free.

Here the CentOS 7 system is installed, if you are multi-system, remember to boot repair.

Network configuration for CentOS 7 system The first method: Direct method

Now test the network, right-click to open the terminal.

Enter ping www.baidu.com, test the network such as, have speed, and then test whether you can download things.

Enter Su-Enter root management, then enter Yum install-y gcc to download gcc and install, according to the instructions direct method to enable the network is feasible, if not a lot of English and can not continue to download, please continue to watch.

Mount method

This is a versatile and can be the most effective way to enable network success: Mount method.

First open the terminal and test the network.

What about no network? Don't panic, next we will restart the network card first. (Note: Restart the network card and other system advanced operation, please go to root management beforehand)

Do I have to restart My network card to find out or not? We first enter ifconfig check IP address, I go, incredibly no IP address, no wonder no network. (Ens33 is the NIC name)

Next we are going to mount the network.

The above note space, no space is wrong, is not found the file, and now we continue, the following empty box represents my operation.

After the save is closed, the mount is complete, then we restart the NIC again.

The following is the test.

There is an IP address on it.

Then you can download things, and here the Mount method is over, and the network configuration is over.

If the above two methods can not download things, should be the Yum source configuration invalidation, re-configure Yum source, here I will not say, configure the source of the problem to say, or self-Baidu, online a lot of tutorials.

Final summary (very important)

If you think it's a lot more complicated than that, here's a simple step.

1. Partitioning problem : No matter how many NTFS zones you have previously divided, you must finally leave at least 20G of free space, because the system does not recognize the NTFS file system, is not installed in the NTFS partition, can only recognize XFS, ext and other file system formats, Leave 20G free Space The purpose is to install the CentOS 7 system when the configuration partition can automatically make this 20G format XFS and other file system format, so that the system can be installed properly.

2. Application Method : You download the CentOS 7 system is neither ghost system nor Windows original installation package, so there are only two methods of using PE, one is to use the latest version of the soft disk in the PE to make the system boot disk, and the second is to restart the menu selection " Custom run image to open the ISO package directly.

3. Manual Partitioning : You can choose to partition automatically, or you can select a custom partition. When you select a custom partition, you first create 3 mount points, one is the start mount point (/boot), one is the swap partition (swap), one is the root directory (/), you click Finish after creation, and then you can install the system.

4. Network configuration : Network configuration Method Please see above can, here does not make too much description.

Additional content: System Startup Disk volume label modification

1. If you are using a soft disk pass, that is what I said above to make the system startup disk, when you write the name of your USB stick (volume label) will become very long, so the installation is prone to problems, so it is recommended to write after writing the short point of the English label (do not add any special symbols).

2. If you forget what to do, there is another way, just more troublesome, here is an example I cite.

If you need any trouble, here are some more:

Speech

This issue is really written I'm going to vomit blood, install a CentOS 7 will also appear a variety of problems, no way, Linux system and Windows system after all, there is a difference, but fortunately, finally I finished, write well. I hope you can support a lot, I am a little tired, do not want to say, the next issue may be relatively long before writing, it should be to the second Linux system, that is, Ubuntu, which is also my next need to think about how to install it, of course, I know that the virtual machine will be easy to install it, but I want to install it

2018-07-16

Installation of the Linux:centos 7 system

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.