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
Similar Posts:
- Rocketmq Error: connect to IP: 10909 failed [How to Solve]
- Django exception-ImportError: No module named django.core.management
- -bash: ls: command not found [How to Solve]
- Rocketmq console install Error: not close json text, token : int
- Django startup error: generator expression must be parentized
- MySQL Error: The server quit without updating PID file [How to Solve]
- Error:could not find java.dll [How to Solve]
- Multiple JDK switch and solution of could not find java.dll exception in win10 environment
- Error modulenotfounderror when starting Django: no module named ‘pytz’
- [Solved] Mrjob running error: /bin/bash: /bin/java: No such file or directory