In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the linux without ifconfig solution, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Solution: 1, execute the "yum search ifconfig" command to search ifconfig, you will find the ifconfig tool in the net-tools toolkit; 2, execute the "yum install net-tools package name" command, and install the net-tools toolkit.
The operating environment of this tutorial: CentOS 6 system, Dell G3 computer.
The ifconfig command is a program that sets or displays the network interface, which can display the network card information of our machine, but sometimes when installing CentOS and other Linux distributions, commands such as ifconfig will not be installed by default. When you enter the terminal, there will be an error when you run the ifconfig command.
First of all, think about whether there is no path of the ifconfig command in the environment variable, because ifconfig is under the / sbin path. You can only run it if you log in with the root user. Take a look at the environment variable of the root user.
There is a path / sbin in the environment variable, that is, if the ifconfig command exists and is located in the / sbin directory, it must be runnable, so check to see if there is an ifconfig command in the / sbin directory.
The results show that there is no ifconfig command in the / sbin directory, so ifconfig is not installed in CentOS.
Solution: install ifconfig using yum
Through the command yum search, we find that the command ifconfig is in the net-tools toolkit, and then we just need to install this package.
Check whether the installation is successful
It worked successfully!
At this time, do you have the same doubts as I did at that time? you don't have to install the ipconfig command in windows when it comes to linux. It turns out that the ifconfig command comes from net-tools, and there are commands such as ifconfig,netstat,whois in this package, so you can't run these commands before.
Thank you for reading this article carefully. I hope the article "there is no solution to linux without ifconfig" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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.