SyntaxError: Unexpected token ‘catch’ SyntaxError: Unexpected token ‘catch’ at EJS.Compiler.compile (http://127.0.0.1:15672/js/ejs-1.0.min.js:1:6659) at new EJS (http://127.0.0.1:15672/js/ejs-1.0.min.js:1:1625) at format (http://127.0.0.1:15672/js/main.js:1164:20) at http://127.0.0.1:15672/js/main.js:486:24 at with_reqs (http://127.0.0.1:15672/js/main.js:1147:9) at http://127.0.0.1:15672/js/main.js:1143:17 at req.onreadystatechange (http://127.0.0.1:15672/js/main.js:1238:17)
根据经验,一般这种问题都是版本问题,且同时搜索到一篇博客介绍 说到elang的版本问题,那就升级到3.10吧,且升级完了之后,发现管理页面确实用不了。
此时需要使用docker命令进入容器内开启插件
docker exec -it $(docker ps | grep rabbit | awk '{print $1}') /bin/bash
- 开启前
- 开启后
- 开启命令
rabbitmq-plugins enable rabbitmq_management
the end