解决办法: 在登陆界面按 ctrl + alt + F3 进入进入命令行模式 使用 root 登陆 执行 #cd /etc 再执行 #/bin/vi /etc/profile 就会进入这个文件进行编辑,将错误的地方改正确 :wq 退出