我试图按照官方指南从头开始安装 RocketMQ ,我使用了 jdk 1.8.0_121 和 maven 3.5.0。
但是,在 step 之后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
源代码是否有任何更新或文档中尚未出现的一些额外步骤,我想知道我是否遗漏了什么?