CentOS 7 installation tutorial (detailed picture and text)

Hello! Hello everyone, I'm shopping around. Traffic warning, there are many pictures in this article. It is recommended to collect and forward them. It is convenient to find when you use it. In addition, this article will also provide downloading methods for related software. I hope you can take a look at it.

1. Download and install VMWare

There are many tools for installing virtual machines, and we choose VMWare which is powerful and stable.

This product is a paid product. I have improved the installation package [ VMware-workstation-full-16 ] for everyone . The link below is accessed. Because some friends have been unsuccessful in the installation, and finally found out that it is a problem with my own VMware, so I suggest you use me This is stable and clean.

Just install it step by step, don't check what is scheduled to be updated, and there is nothing else to pay attention to. For the VMWare software download link, you can follow the official account "Go to GitHub" and then reply to the virtual machine download.

After the installation, it looks like this. Everyone ignores the one I framed. It is a few virtual machines that I have installed.

2.  Download CentOS

You can download it on the Centos official website, as shown below

3. Install Centos

I didn’t explain what I did in the picture below. You can just follow the picture. I didn’t omit one step in detail. I feel sorry for myself.

You choose the processor and the number of cores according to your needs. Generally, one processor and two cores are OK.

Choose the memory allocated for the virtual machine, generally about 2G is enough.

Choose NAT network type here

Choose the size of the disk allocated for the virtual machine, generally 20G is appropriate.

Choose the Centos mirror you downloaded here.

At this point, our virtual machine is installed, but it cannot access the network and needs to configure ip, which we will talk about below.

4.  Back up the virtual machine

Because we inevitably make mistakes in our usual operations, such as deleting some system files by mistake, then we can first back up the virtual machine that has just been installed, and at least there will be a backup if we make mistakes in the future.

At this point, the installation and backup of our virtual machine are all finished. Remember, the ip, etc. have not been set, so it is not accessible now.

Next, I will introduce the network configuration of Centos: virtual machine network settings, which allows the virtual machine to connect and use the host's network for Internet access.

5.  Network mode selection

Confirm that the virtual machine selects the NAT network mode

6. Set up a virtual network card

Set the default gateway and IP address in the same network segment, and set the DNS and gateway to be the same.


7.   Virtual machine network configuration

The attention is marked in the picture, everyone see for yourself

Edit this file, some systems are called ens33, almost all of them are related to ens33

/etc/sysconfig/network-scripts/ifcfg-ens33

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
IPADDR=192.168.199.55
GATEWAY=192.168.199.2
DNS1=192.168.199.2
NAME=ens33
UUID=59738a3e-a489-43e0-8284-248329bd3c8f
DEVICE=ens33
ONBOOT=yes

8. Restart the network card service

After modifying the configuration, only restart the network card service to take effect

centos6: service network restart
centos7: systemctl restart network

Check it, if the following figure shows, it means success.


9. Install network tools and vim editing

Now the system still cannot use ifconfig and vim commands, we execute the following three commands to install them in turn.

yum update
yum install net-tools
yum install vim

So far, our installation of Centos7 virtual machine is all over. I wish you all a happy study, life and work!

Contributor’s blog: https://xiaoma.cool‍

推荐阅读
0. 逛逛GitHub交流群已成立
1. 如何提升 B站 等级?
2. 你的毕业设计是 XX 管理系统吗?
3. 我是如何给妹子优化 Windows 的?
4. 3.2 万 Star 的算法可视化项目火了

Guess you like

Origin blog.csdn.net/weixin_47080540/article/details/110212759