In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
First, environmental preparation:
Vmware workstation
Xshell
Centos7.4 Mirror
Software installation package Baidu cloud sharing link: https://pan.baidu.com/s/1Jg66BsqgYjvT54RT-S-5iQ
Extraction code: 5hli
2. Centos installation steps:
1. First open our vmware and start to create a virtual machine
2. Select Custom, next step
3. Then click next to install the client system. We temporarily choose to install the operating system later, configure the virtual machine first, and then install the image.
4. Select the latest version in the linux system, and then click next.
5, when we choose the installation path, be careful not to appear Chinese marks and spaces, it must be all English, and then click next.
6, the number of cores, look at their own computer configuration, do not exceed it, if you want to save resources, with a single core is also possible.
7. On the memory side, refer to the memory size of your computer. 4GB recommends 1GB of memory 8GB or 16GB recommends 2GB. Choose 4GB or above if it is larger than 16GB.
8. Select nat for network type, because we need to access web pages on the virtual machine, select LSI for control type and SCSI for disk type.
9. Click next to create a virtual disk. On the disk size side, we choose 40GB. If you need to do various experiments on the virtual machine later, it is recommended that the disk memory should not be too small.
10, the disk file path is still the same as before, do not appear in Chinese, can be placed in the same folder just before, easy to manage.
11. After clicking the next step, we click on the custom hardware side, look for the iso image file on our computer, click "close", and then click "finish". At this point, our virtual machine is set up.
III. Basic Centos settings and environmental optimization
1. We open the virtual machine we just created. In the initial interface, we move through the keyboard up and down keys, select the first option, then enter, and then we wait for installation.
2. After the installation is completed, just like the Windows installation guide, we will be asked to choose a language at the beginning, Chinese-simplified Chinese
3. Click next, and then the setting interface of each item will come out, which is different from the step-by-step selection of the Windows system. Here, click OK to set all the settings in one interface and it will be done.
First of all, on the software selection side, click to select the GNOME desktop.
Next, let's partition the disk.
Do the same, continue to add mount points and assign a certain amount of capacity to swap, / boot, and / home, respectively.
4. After dividing the disk, we will go back to the main interface, click to start the installation, and the next thing to do is to wait for the installation.
In the installation interface, we can see two users, one is the most privileged administrator account, and the other is an ordinary user, we can click in to change the password and so on.
After the installation is complete, we click restart
5. After restarting, we must first accept its license agreement, click accept, return, and then click "finish configuration" in the lower right corner.
6. After the configuration is done, just as before, let's set up the language, time, account and password (this is our own account, just like the Win10 system). After completing these steps of configuration, we will come to such a desktop.
Next, we click the power supply in the upper right corner to log out the current user, and then on the user selection, click not listed, and then switch to the administrator root to log in.
In the next operation, set the language as above, and so on.
7. Configure the network so that the virtual machine can access the Internet.
Right-click in the blank, select to open the terminal, and use the command to configure the network.
Enter the command vim / etc/sysconfig/network-scripts/ifcfg-ens33 to find the location of the network card and change it, and then enter it after typing.
After enter goes in, we move the cursor to the bottom no through the up and down keys of the keyboard, and we want to change "no" to "yes". At this time, we find that we can't delete it through the cursor. We need to press the letter "I" on the keyboard, and the word "input" will appear in the bottom corner. After we change no to yes, click esc to exit, and then type ": (colon)" on the keyboard. At this point, the cursor will appear at the bottom, and we type wq, which means save exit.
After returning to the main interface, we need to enter a command: service network restart (reset the network service), and the prompt "OK" indicates that the reset is successful.
At this point, we can type ifconfig to check the ip address of the current network. There will be three network cards. The first time is ens33, which is the ip address of our current network card.
Now that the network is set up, let's go back to the desktop to see if we can surf the Internet now, click on the application in the upper left corner of the desktop, select Firefox, and find that we can access the web page.
4. Remote control of Centos with xshell
Step 1: we open the xshell software of the host (it is available in the shared installation package, double-click to install it on the desktop), and we first create a new session to control the virtual machine centos7-1 we just built.
The second step: keyboard and appearance optimization, first of all, the keyboard setting here, we choose ASCII on both sides, otherwise there will be garbled
Appearance side, we choose this font, it is recommended to choose consolas up and down, this font can distinguish between Chinese and English punctuation marks, easier to use, the right side can change the font size, etc., after all set, we directly click on the lower right link on it.
Later in the pop-up interface to select, receive and save, we choose to log in with Super Admin root and enter the password, remember to save the user name and password, so that the next login will not be entered again.
In xshell, enter ifconfig, check the ip address, and find that the interface that appears is the same as that in centos, which represents that we can control this server remotely. The benefits in real work, remote control can save resources, improve efficiency, change the settings in the remote control server, do not go to the scene myself.
By comparison, we find that the interface is exactly the same.
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: 222
*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.