【devops系列】 linux命令ifconfig报错command not found 最近在安装Vmware Centos,输入ifconfig查看VM的IP地址,提示command not f
最近在安装Vmware Centos,输入ifconfig查看VM的IP地址,提示command not found,发现没安装命令包,此篇文章记录整个问题解决方法。
命令行中输入ip addr,若看到有ip地址,则说明已设置正常,若没有则需要设置一个。
cd /etc/sysconfig/network-scripts
vi ifcfg-ens33
注:ip地址不是固定这个值,根据实际情况设置。
在sbin目录中输入ls | grep ‘ifconfig’,没有则说明没有安装
yum install net-tools
安装过程中询问是否安装,输入’y’并回车即可。
来源地址:https://blog.csdn.net/songjianlong/article/details/129826093
--结束END--
本文标题: Linux命令ifconfig报错command not found
本文链接: https://www.lsjlt.com/news/402358.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0