1, I use the Java version is the edition 8 Update, the verification method can go to this URL to verify http://www.java.com/zh_CN/download/installed.jsp
2, OpenFire use is the OPENFIRE_3_10_2.DMG
3, Spark uses the Spark_2_6_3
4, after installation, the first time you can start the OpenFire server, but restart the computer, you can no longer start the server.
Check the many methods of Baidu, is recommended because the JDK environment is not installed, but obviously I was installed;
And I put the JDK and OpenFire environment Uninstall, reinstall, although after installation, you can start OpenFire, but then start the computer, OpenFire can not start.
5, the Final solution is:
Open terminal and enter the following command:
A:sudo su
B:cd/usr/local/openfire/bin
C:export java_home= '/usr/libexec/java_home '
D:echo $JAVA _home/library/java/javavirtualmachines/jdk1.8.0_51.jdk/contents/home
E:cd/usr/local/openfire/bin
F:./openfire.sh
After executing these commands, the server can be started, and a computer restart is also available.
Figures:
If the input./openfire.sh is displayed, the permission denied can be turned off again by opening the terminal to first enter sudo chmod-r 777/usr/local/openfire/bin to get folder permissions.
Reprinted from: http://blog.csdn.net/sharecourage/article/details/47082985
Mac OS10.10 OpenFire can't start problem