In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to install Centos in VMWare". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install Centos in VMWare.
1. Open vmware workstations and create a new virtual machine. The following interface appears. Select the "Custom (Advanced)" option, and then proceed to the next step:
2. This step defaults, and the next step continues:
3. In the following screen, select the "install operating system later" option, and continue with the next step:
4. When the following interface appears, the client operating system selects "linux" and the version selects "centos 64-bit", and the next step continues:
5. Enter the custom virtual machine name in the following interface. The name of the virtual machine had better be literal. Here is "centos7_cdh_bd06", specify the location of the virtual machine, here is "d:\ virtual machines\ centos7_cdh_bd06", and then continue in the next step:
6. The following interface appears, and select the number of processors and the number of cores per processor. Here are 2 and 4, respectively. Proceed to the next step:
7. The following interface appears to specify the amount of memory occupied by the virtual machine. Here it is 2048m. Continue with the next step:
8. The following interface appears, and select the network connection type. Here, select "use bridging Network". You can choose the process of installing virtual machines according to your needs. Various modes have been standardized in the installation wizard. Here additional instructions are as follows:
1) use bridging network: the virtual machine ip is in the same network segment as the local machine, and the virtual machine and the virtual machine can be interconnected through ip. When the virtual machine is connected to the network, the virtual machine can be connected with other hosts in this network segment. This mode is often used in the server environment architecture.
2) use network address translation (nat): the virtual machine can be connected to the network, interconnect with the local machine, and cannot communicate with other hosts in the local network segment.
3) using host-only mode network: the virtual machine cannot be connected to the network, interconnects with the local machine, and cannot communicate with other hosts in the local network segment.
The next step continues:
9. By default, the next step continues:
10. By default, next step continues:
11. By default, the next step continues:
12. The following interface appears. Enter the disk size of the virtual machine. The default size of 20g is generally not enough. It is recommended to set the disk size of the virtual machine to 80g. Continue with the next step:
13. By default, the next step continues:
14. By default, click "finish" to end the virtual machine creation:
15. After exiting the installation wizard, we can see the virtual machine just created in the left column of the virtual machine management interface, and the detailed configuration information of the virtual machine can be seen in the right column:
16. Click the "Edit Virtual Machine Settings" option in the above interface, and the following interface appears:
17. In the image above, you need to specify "cd/dvd (ide)" installation image, remove "usb Controller", "Sound Card" and "Printer", and then click OK. The interface after the above settings is shown in the following figure:
18. Click to start the virtual machine to enter the centos7 operating system installation process:
19. The virtual machine console appears, select install centos liunx 7, and click enter to continue:
20. Click enter according to the prompt to continue:
21. Select english by default in the following interface, and click continue to continue:
22. The main interface for centos7 installation and configuration is shown in the following figure. According to the interface, the configuration of the following three parts is described:
The localization and software parts do not need to be set up, and it is important to pay attention to the sofrware selection option. This time, the default value is used (that is, minimizing the installation, the linux system of this installation does not include a graphical interface). As for other components, they can be installed through yum later.
As shown in the figure above, the system part needs to plan and configure the red option in the figure, that is, disk partition planning. In addition, you can modify the hostname in the network & host name option during installation (the default hostname is localhost.localdomain). The specific configuration process is as follows:
Click "installation destination" to enter the following interface, select 80g hard disk, scroll down to the end, select "i will configure partitioning", that is, custom disk partition, and finally click done in the upper left corner to plan the disk partition:
23. Centos7 is divided into disks in the interface below. Here is an explanation of the previous planning:
/ boot:1024m, created in standard partition format.
Swap:4096m, created in standard partition format.
/: all remaining space is created in lvm volume group format.
The interface after planning is as follows. Click done to complete the zoning plan, and click "accept changs" in the pop-up dialog box:
24. After completing the disk planning, click the red box in the following figure to change the operating system hostname to db06 (as shown in the second figure), then click done to complete the hostname configuration and return to the main configuration interface:
25. In the following figure, in fact, from step 24 of the configuration, we can find that the "begin installtion" button in the lower right corner has changed from the original gray to blue, which means that the operating system installation work can be carried out. Click "begin installtion" to install the operating system.
26. In the following user settings, all you need to do is to change the root user password, click "root password", and set the password. If the password security is not high, for example, my password here is "oracle", then you may need to click "OK" twice. When the root password is successfully set and returned to the installation interface again, we can see that the red warning of the previous user setting interface disappears. Compare figure 1 and figure 3 below:
27. In the following figure, the installation of the operating system is complete. Click reboot to restart the operating system.
28. Log in with the root user (i.e. root/oracle) and modify the ip address (vi / etc/sysconfig/network-scripts/ifcfg-ens32):
Press the character key "I" to enter edit mode and modify the contents of the / etc/sysconfig/network-scripts/ifcfg-ens32 file as follows:
After pressing the "esc" key, enter: wq enter to complete the configuration file editing.
Enter: service network restart command to restart the network card, just modify the ip address, ping www.baidu.com test network connectivity.
Well, at this point, the centos7 operating system has been successfully installed.
Install gui graphical interface under centos7
1. How to install gui graphical interface under centos7
When you install the centos7 server version, the system defaults to not installing the gui graphical interface program, which requires manual installation of the centos7gnome gui package.
2. Use the command to install the gnome graphical interface program under the system
Before installing the gnome package, you need to check that the installation source (yum) is normal, because you need to install the gnome package in the yum command.
Step 1: first check whether yum is installed and whether the network has a network. If you don't have either, solve the network first and fix the installation of yum.
(for network problems, you can choose the network connection first when you choose the language, time, installation package, etc.)
Step 2: enter the following command at the command line to install the gnome package.
# yum groupinstall "gnome desktop"graphical administration tools"
Step 3: update the running level of the system.
# ln-sf/lib/systemd/system/runlevel5.target / etc/systemd/system/default.target
Step 4: restart the machine. Start to enter the graphical interface by default.
# reboot
3. Enter the graphical interface directly after the system is started
At this point, I believe you have a deeper understanding of "VMWare how to install Centos". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.