如果提示 curl: command not found ,那是因为没装 Curl
yum update命令注意:!!!!
update
If run without any packages, update will update every currently installed package.
If one or more packagesor package globs are specified, Yum will only update the listed packages.
大概的意思是:如果 yum update 后面没有指定要更新的包名的话会更新所有已安装的包,只有指定了包名才更新指定的安装包。
并且,如果使用了 -y 参数的话会直接进行更新,而不会询问你是否进行更新。结果刚好服务器上的某个组件 有更新,yum 就直接给组件进行了升级,可能会导致重启或重启失败。