1. Reasons for error reporting
/usr/local/rocketmq/bin/runserver.sh: 70: [[: not found Unrecognized option: -Xlog:gc*:file=/dev/shm/rmq_srv_gc_%p_%t.log:time,tags:filecount=5,filesize=30M Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
2. Solution:
Use vim to edit the runserver.sh file inĀ Edit/usr/local/rocketmq/bin/
3. Error reason
Since the java version installed on the machine is 1.8 But there is an error of unknown reason in the java version judgment on line 70 in the /usr/local/rocketmq/bin/runserver.sh file This led to the execution of the java 9+ version of the command Therefore, you only need to comment the judgment and commands of the java 9+ version. And vice versa, if the java version installed on the machine is 11 Then only need to comment the judgments and commands of the java 1.8 version