centos 更改root密码

用root帐号登录系统

在命令行下输入

passwd root 回车

输入密码2次,密码相同就好了

再回车

更改就成功了!

原文地址:https://www.cnblogs.com/wangzong/p/2224039.html