如果在 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 指令應該不會報錯了。