1

我已按照安装程序解锁浏览器访问:

sudo rabbitmq-plugins enable rabbitmq_management
sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

到达 localhost:15672 后,我得到的只是一个空白页:

<!doctype html>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<html>
  <head>
    <title>RabbitMQ Management</title>
    <script src="js/ejs-1.0.min.js" type="text/javascript"></script>
    <script src="js/jquery-1.12.4.min.js" type="text/javascript"></script>
    <script src="js/jquery.flot-0.8.1.min.js" type="text/javascript"></script>
    <script src="js/jquery.flot-0.8.1.time.min.js" type="text/javascript"></script>
    <script src="js/sammy-0.7.6.min.js" type="text/javascript"></script>
    <script src="js/json2-2016.10.28.js" type="text/javascript"></script>
    <script src="js/base64.js" type="text/javascript"></script>
    <script src="js/global.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
    <script src="js/prefs.js" type="text/javascript"></script>
    <script src="js/formatters.js" type="text/javascript"></script>
    <script src="js/charts.js" type="text/javascript"></script>

    <link href="css/main.css" rel="stylesheet" type="text/css"/>
    <link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>

<!--[if lte IE 8]>
    <script src="js/excanvas.min.js" type="text/javascript"></script>
    <link href="css/evil.css" rel="stylesheet" type="text/css"/>
<![endif]-->
  </head>
  <body>
    <div id="outer"></div>
    <div id="debug"></div>
    <div id="scratch"></div>
  </body>
</html>

登录表格在哪里?

4

1 回答 1

0

好的,添加更多细节:我使用 vagrant,我想从我的主机访问 url。因此,在检查服务器日志后,我失败的原因是虚拟主机文件中缺少“/”。所以这是正确的一种:

<VirtualHost *:80>
  ServerName rabbit.fbm

  ProxyRequests Off
  ProxyPass / http://192.168.56.101:15672/

  ## Logging
  ErrorLog "/var/log/apache2/rabbit_error.log"
  ServerSignature Off
  CustomLog "/var/log/apache2/rabbit_access.log" combined

</VirtualHost>

PS 不要忘记主机上的防火墙。

于 2018-09-25T22:08:34.600 回答