依次执行下面方法就可以解决无法启动问题(前提是java环境和openfire都正确安装)
sudo chmod -R 777 /usr/local/openfire/bin
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