按照官网教程https://rocketmq.apache.org/docs/quick-start/,输入命令,结果提示没有此目录,namesrv应该是启动失败了,下面开始排查过程。
> unzip rocketmq-all-4.8.0-source-release.zip > cd rocketmq-all-4.8.0/ > mvn -Prelease-all -DskipTests clean install -U > cd distribution/target/rocketmq-4.8.0/rocketmq-4.8.0 > nohup sh bin/mqnamesrv & > tail -f ~/logs/rocketmqlogs/namesrv.log
1.使用tail -f nohup.out命令,发现提示这个报错信息,这更加证实我的想法,果然启动报错了,错误日志保存在了hs_err_pid15988.log文件中。
# An error report file with more information is saved as:
# /usr/soft/rocketmq-all-4.8.0-source-release/distribution/target/rocketmq-4.8.0/rocketmq-4.8.0/hs_err_pid15988.log
Java HotSpot(TM) 64-Bit Server VM warning: Using the DefNew young