我试图在RocketMQ之后从头开始安装官方指南,我使用了jdk 1.8.0_121和maven 3.5.0。
但是,在步骤mvn -Prelease-all -DskipTests clean install -U之后,没有生成目录distribution,因此cd distribution/target/apache-rocketmq不会成功。
然后,我尝试通过输入sh bin/mqnamesrv直接启动名称服务器,它给了我以下错误。
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=320m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young collector with the CMS collector is deprecated and will likely be removed in a future release
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
Error: Could not find or load main class org.apache.rocketmq.namesrv.NamesrvStartup我原以为这可能是我的CLASSPATH环境变量的问题,但是即使我设置了它,它仍然不能工作。下面是我的配置
export JAVA_HOME=$HOME/src/jdk1.8.0_121
export PATH=$PATH:$JAVA_HOME/bin
export MAVEN_HOME=$HOME/src/apache-maven-3.5.0
export PATH=$PATH:$MAVEN_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar是否有任何更新的源代码或一些额外的步骤还没有出现在文档上,我想知道我是否遗漏了什么?
发布于 2017-05-01 14:07:26
不好意思给您带来麻烦,请git克隆develop分支最新的源代码,并有一个独立的模块distribution。
如果您在cd target/apache-rocketmq-all/分支,请使用master运行rocketmq。
https://stackoverflow.com/questions/43709352
复制相似问题