redhat最小化安装是多少包_RedHat7.4最小化安装没有ifconfig命令

软件环境

VirtualBox 5.2.8

rhel-server-7.4-x86_64-dvd.iso

系统环境

Win10 64 位 8G内存

最小化安装了RedHat7.4之后,进入系统之后使用命令:

[root@localhost ~]# ifconfig

-bash:ifconfig:command not found

使用如下命令:

[root@localhost ~]# /sbin/ifconfig

-bash: /sbin/ifconfig: No such file or directory

同样没有任何结果,这是因为在最小化安装的里面没有ifconfig的相关包,因为在redhat7之后准备把ifconfig命令废除了,这怎么办呢?一是安装;二是使用替代指令

替代指令ip addr,这个指令的显示和ifconfig的显示差不多

[root@localhost ~]# ip addr1: lo: mtu 65536 qdisc noqueue state UNKNOWN qlen 1link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet127.0.0.1/8scope host lo

valid_lft forever preferred_lft forever

inet6 ::1/128scope host

valid_lft forever preferred_lft forever2: enp0s3: mtu 1500 qdisc pfifo_fast state UP qlen 1000link/ether 08:00:27:b4:d4:69brd ff:ff:ff:ff:ff:ff

inet192.168.3.197/24 brd 192.168.3.255scope global enp0s3

valid_lft forever preferred_lft forever

inet6 fe80::a21a:8e53:54c2:4243/64scope link

valid_lft forever preferred_lft forever

如果要安装

[root@localhost ~]# yum provides ifconfigLoaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

No matches found

[root@localhost~]# yum whatprovides ifconfigLoaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

No matches found

在解决了RedHat7的yum源问题之后,使用下面的命令进行安装,安装完成后就可以使用ifconfig命令了

[root@localhost ~]# yum install net-tools

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值