1、进入卸载脚本所在目录
[weblogic@linuxserver
~]$ pwd
/home/weblogic
[weblogic@linuxserver
~]$ cd Oracle/Middleware/wlserver_10.3/uninstall/
[weblogic@linuxserver
uninstall]$ ls
uninstall.sh wls_uninstall.xml
2、运行卸载脚本
[weblogic@linuxserver
uninstall]$ ./uninstall.sh
/home/weblogic/Oracle/Middleware/utils/uninstall/uninstall.sh:
line 11: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/bin/java: No such file
or directory
提示不存在相应版本的java,查看当前环境变量配置文件,与卸载脚本中的java版本不一致。
[weblogic@linuxserver
uninstall]$ cat /home/weblogic/.bash_profile
# .bash_profile
# Get the aliases
and functions
if [ -f ~/.bashrc
]; then
. ~/.bashrc
fi
# User specific
environment and startup programs
PATH=$PATH:$HOME/bin