安装openfire后无法启动,在偏好设置里面如何点击都无法启动,重装jdk和openfire后仍然无法启动
- 关键词:Could not start the Openfire server
- 在网上找到的方案,供参考,参考无法关闭openfire,自己试了一个可以关闭的方案
参考链接
$ sudo chmod -R 777 /usr/local/openfire/bin
Password:
$ sudo su
sh-3.2# cd /usr/local/openfire/bin
sh-3.2# export JAVA_HOME=`/usr/libexec/java_home` //注意标点
sh-3.2# echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home //别照抄,注意其中点jdk版本,每个人可能不一样,建议使用tab补全
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
sh-3.2# cd /usr/local/openfire/bin
sh-3.2# ./openfire.sh
Openfire 4.0.2 [Aug 9, 2016 1:51:21 PM]
Admin console listening at http://myMac.local:9090
//出现上处console listening表示成功,重新打开openfire,发现已经启动
sh-3.2# cd /usr/local/openfire/bin
sh-3.2# ./openfire.sh
Openfire 4.0.2 [Aug 9, 2016 1:51:21 PM]
Admin console listening at http://liangqili1.local:9090
^CServer halted
sh-3.2#
//在刚才的命令行下面,按下ctl+c,重新打开openfire发现已经关闭
$ sudo rm -rf /Library/PreferencePanes/Openfire.prefPane
$ sudo rm -rf /usr/local/openfire
$ sudo rm -rf /Library/LaunchDaemons/org.jivesoftware.openfire.plist