1、错误:
2、解决方法:
①:sudo chmod -R 777 /usr/local/openfire/bin
②:sudo su
③:cd /usr/local/openfire/bin
④:export JAVA_HOME=`/usr/libexec/java_home`
⑤:echo $JAVA_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home
⑥: cd /usr/local/openfire/bin
⑦: ./openfire.sh
逐一执行完这些命令之后,服务器就可以启动了。如图:
¥¥¥
重新配置OpenFire数据库
1.停止oepnfire服务
[root@openfire.clvn.com.cn ~]# su - openfire
-bash-4.1$ cd /usr/local/openfire/bin
-bash-4.1$ ./openfire stop
2.找到openfire配置文件
[root@openfire.clvn.com.cn ~]# cd /usr/local/openfire/conf/
[root@openfire.clvn.com.cn conf]# ls
available-plugins.xml crowd.properties openfire.xml security.xml server-update.xml
[root@openfire.clvn.com.cn conf]# vim openfire.xml
<setup>true</setup>
3.重新启动openfire
[root@openfire.clvn.com.cn ~]# su - openfire
-bash-4.1$ cd /usr/local/openfire/bin
-bash-4.1$ ./openfire start
Starting openfire