In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to check the IP address of Centos7 in the virtual machine, which is very detailed and has certain reference value. Friends who are interested must finish it!
The reason why we look at IP here is that when we want to build a Centos remote tool, Xshell, to connect to Centos, we need an IP address, so here we first
Learn to check the IP address of the Centos7 in the virtual machine
First of all, let's log in to the operating system user name, root password, 123456.
Then we enter ip to query named ip addr
It is found that the ens33 does not have the attribute inet, so it is not possible to connect to the virtual machine through the IP address.
Next, let's take a look at the configuration of the ens33 network card: vi / etc/sysconfig/network-scripts/ifcfg-ens33 pay attention to the space after vi.
Vi is Linux's built-in text editor command to open a file.
From the configuration list, you can see that CentOS 7 defaults to not starting the network card (ONBOOT=no).
Change this item to YES (ONBOOT=yes)
Then press Esc to exit and exit command: wq and then press Enter. (note: wq means to save and then exit. I will talk about vi later.)
Then restart the network service: sudo service network restart
Then we enter the ip addr command
Here the inet property shows the IP 192.168.1.107 in the virtual machine (yours may not be the same as mine)
The above is all the contents of the article "how to check the IP address of Centos7 in the virtual machine". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.