Home > Article > Operation and Maintenance > What to do if ifconfig cannot be used in CentOS
CentOS ifconfig无法使用怎么办
解决方法:安装net-tools包
sudo yum install net-tools -y
对于centos7来说ifconfig已经过时了所以在centos7中找不到ifconfig命令了,
现在一般都使用"ip addr"和"ip link"来查看网卡信息
1、要查看网卡细节可以使用:“ip add”
2、查看网络接口统计 数据:“ip link”或者“ip -s link”
PHP中文网,大量thinkphp教程,欢迎学习!
The above is the detailed content of What to do if ifconfig cannot be used in CentOS. For more information, please follow other related articles on the PHP Chinese website!