mq启动报错ERROR: Please set the JAVA_HOME variable in your environment, We need java(x64)! !!
journalctl -u rocketmqnamesrv.service #查看报错
结果百度一堆,没乱用。
最终解决办法
根据自己的java环境变量设置
ln -s /usr/local/java/jdk1.8.0_60/bin/javac /usr/bin/javac ln -s /usr/local/java/jdk1.8.0_60/bin/jar /usr/bin/jar ln -s /usr/local/java/jdk1.8.0_60/bin/java /bin/java
启动成功。