如何重置 CentOS 登录密码
如果忘记了 CentOS 服务器的登录密码,可以采用以下步骤进行重置:
步骤 1:启动到救援模式
- 重新启动服务器。
- 在引导菜单中,选择 \"救援模式\"。
- 选择 \"用 shell 继续\"。
步骤 2:挂载根文件系统
-
以下命令挂载根文件系统:
<code>mount -o remount,rw /sysroot
如何重置 CentOS 登录密码
如果忘记了 CentOS 服务器的登录密码,可以采用以下步骤进行重置:
步骤 1:启动到救援模式
步骤 2:挂载根文件系统
以下命令挂载根文件系统:
<code>mount -o remount,rw /sysroot
之前