When starting rocketmq, mqtt has been unable to start. Looking at the log, I found that the script execution error was reported: runserver.sh: line 2: $'\r': command not found
-
Error screenshot
-
Centos solution:
yum -y install dos2unix
-
dos2unix file name
dos2unix 你的文件名
The author here is:dos2unix runserver.sh
-
Method Two:
- Open the file and add in the first line
:set ff=unix
Save and exit
- Open the file and add in the first line