安装步骤:
可以参考:https://jingyan.baidu.com/article/39810a23a3b2ddb636fda688.html
可以参考:https://www.jianshu.com/p/3244f782744a
注意事项:
1、安装的是minimal版本 使用ifconfig命令时候会报错 bash ifconfig command not found
解决办法:
方法1:可以使用ip addr命令查看ip
方法2: a)在sbin/下查看ifconfig是否存在
b)如果ifconfig命令存在,查看环境变量设置 如果环境变量中没有包含ifconfig命令的路径
环境变量中加入PATH = $PATH:/sbin
c)如果不存在ifconfig 安装net-tools package
yum upgrade yum install net-tools sudo yum install net-tools
安装其他命令使用 例如: yum -y install vim