1.1 zimber故障处理步骤
1.1.1 现象描述
Running Post Installation Configuration:/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not foundOperations logged to /tmp/zmsetup.20190611-110758.logInstalling LDAP configuration database...done.Setting defaults.../opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory/opt/zimbra/bin/zmlocalconfig: line 83: exec: java: not found/opt/zimbra/bin/zmjava: line 59: /bin/java: No such file or directory
1.1.2 查找当前系统是否有zimber相关软件包
[root@mail opt]# rpm -aq | grep zimbrazimbra-openjdk-11.0.2-1zimbra8.8b1.el7.x86_64
1.1.3 卸载查找到的zimbra-openjdk软件包
[root@mail opt]# rpm -e zimbra-openjdk warning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/release: remove failed: No such file or directorywarning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/tzdb.dat: remove failed: No such file or directorywarning: file /opt/zimbra/common/lib/jvm/openjdk-11.0.2-zimbra/lib/src.zip: remove failed: No such file or directory
1.1.4 再次查找zimber相关软件包
[root@mail opt]# rpm -aq | grep zimbra
1.1.5 分析导致原因
发现通过./install.sh -u命令卸载Zimbra 不会完全卸载服务器上安装的所有Zimbra软件包;需要我们通过rpm包管理器进行手动查找并删除,再次安装可以成功安装zimbra