vi /home/oracle/.bash_profile 在末尾加上 export EDITOR=vi 重点:EDITOR 必须大写,等号两边不能有空格 转载于:https://blog.51cto.com/cjlozbg/1406319