jdk的原因,我使用的是openjdk其tools.sh依赖${JAVA_HOME}/lib/ext的jar包.

报错截图

报错如图.png

处理方法

[root@mid1 bin]# rpm -qa | grep jdk
copy-jdk-configs-3.3-10.el7_5.noarch
java-1.8.0-openjdk-devel-1.8.0.292.b10-1.el7_9.x86_64
java-1.8.0-openjdk-headless-1.8.0.292.b10-1.el7_9.x86_64
java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64
[root@mid1 bin]# rpm -ql "java-1.8.0-openjdk-headless-1.8.0.292.b10-1.el7_9.x86_64" | grep  "jre/lib/ext"
[root@mid1 bin]# echo "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.292.b10-1.el7_9.x86_64" >> /etc/profile
[root@mid1 bin]# source /etc/profile
# 再次执行mqadmin命令
[root@mid1 bin]# ./mqadmin topicList -n 10.10.80.55:9876

Rocketmq运行方法:docker run.