前言
自从用来云服务器,虚拟机已经很久没碰了,近期想学习搭建邮件服务器,无奈云服务器商家都禁用了25端口,于是笔者想通过虚拟机的形式来搭建邮件服务器,所以安装了一台centos7,用过虚拟机的同学应该清楚在虚拟机了直接操作命令实在是不方便,那就通过xshell来连接吧,但当笔者输入ifconfig来查看ip是却发现命令未找到,这是咋回事呢,下面我们就来看看如何解决这个问题。
[root@192 /]# ifconfig
-bash: ifconfig: 未找到命令
1 用search命令查看一下ifconfig在哪个包里
[root@192 /]# yum search ifconfig
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.jdcloud.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
================================ 匹配:ifconfig ================================