What to do if ifconfig cannot be found under centos7

王林
Release: 2020-03-31 10:52:36
Original
5300 people have browsed it

What to do if ifconfig cannot be found under centos7

Problem:

The input ifconfig prompt does not exist, as shown below:

What to do if ifconfig cannot be found under centos7

Solution:

First confirm whether it is caused by the lack of ifconfig in the environment variable

ls /sbin/ifconfig
Copy after login

What to do if ifconfig cannot be found under centos7

(Recommended tutorial: centos tutorial)

The above confirms that ifconfig is not installed on the system, let’s install it next.

yum install ifconfig
Copy after login

What to do if ifconfig cannot be found under centos7

prompts that there is no ifconfig installation package. We then use the

yum search ifconfig
Copy after login

command to search for ifconfig-related packages

What to do if ifconfig cannot be found under centos7

Check ifconfig matches the net-tools.x86_64 package and install net -tools.x86_64 package.

The command is as follows:              

yum install net-tools.x86_64 -y
Copy after login

Enter ifconfig to see the effect

What to do if ifconfig cannot be found under centos7

##Recommended related video tutorials:

linux video tutorial

The above is the detailed content of What to do if ifconfig cannot be found under centos7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template