很简单就是 /etc/profile文件中内容被写坏了 要改 这时候vi操作用不了 这样写 which vi 得到/usr/bin/vi 然后 cd /usr/bin 然后./vi /etc/profile 去改 只能这么做!!!!