如果在 RHEL / CentOS 7 使用 ifconfig 时, 如果出现报错:
ifconfig: command not found
这是因为在 RHEL / CentOS 7 开始, 最小化安装不会包括 ifconfig 及 netstat 等工具, 以前在 CentOS 5 及 6 都是默认安装的.
要安装 ifconfig 到系统, 可以执行以下指令:
# yum install net-tools
现在再执行 ifconfig 指令应该不会报错了。
如果在 RHEL / CentOS 7 使用 ifconfig 时, 如果出现报错:
ifconfig: command not found
这是因为在 RHEL / CentOS 7 开始, 最小化安装不会包括 ifconfig 及 netstat 等工具, 以前在 CentOS 5 及 6 都是默认安装的.
要安装 ifconfig 到系统, 可以执行以下指令:
现在再执行 ifconfig 指令应该不会报错了。