简体   繁体   English

ActiveMQ 5.15 HTTP错误:503

[英]ActiveMQ 5.15 HTTP ERROR: 503

Run environment :linux (CentOS 7), JDK 1.8, & ActiveMQ 5.15 运行环境:linux(CentOS 7),JDK 1.8和ActiveMQ 5.15

I started Activemq then visit the management page with Chrome,when I try to log in with the default username & password I get the following error; 我启动Activemq,然后使用Chrome访问管理页面,当尝试使用默认的用户名和密码登录时,出现以下错误;

HTTP ERROR: 503 HTTP错误:503

Problem accessing /admin/. 访问/ admin /时出现问题。 Reason: 原因:

Service Unavailable Powered by Jetty:// 由Jetty://提供的服务不可用

How can I resolve this problem? 我该如何解决这个问题?

Had the same issue. 有同样的问题。 Maybe something went wrong the extraction of the package. 提取软件包时可能出了点问题。

I downloaded this: 我下载了这个:

wget https://archive.apache.org/dist/activemq/5.15.0/apache-activemq-5.15.0-bin.tar.gz

and extracted it with: 并提取出来:

sudo tar -zxvf apache-activemq-5.15.0-bin.tar.gz -C /opt

then it worked for me. 然后对我有用。

I was getting this same error. 我遇到了同样的错误。 It turns out that I had run it as root user originally, then later I stopped it and ran it as a non-root user. 原来,我最初是以root用户身份运行的,后来我停止了它并以非root用户身份运行了它。 Certain data files that had been created and owned by the original root instance were not accessible to the non-root user. 非root用户无法访问原始root实例创建并拥有的某些数据文件。

Check the ownership of the files, and change them if necessary to match the user that the broker is running as. 检查文件的所有权,并在必要时更改它们以匹配运行代理的用户。

My two cents: 我的两分钱:

I start with the activemq in Ubuntu Repo, but then later change to binary package from official website. 我从Ubuntu Repo中的activemq开始,但后来从官方网站更改为二进制包。

In my case, the repo version left an /etc/default/activemq config file, which runs activemq with user "activemq". 就我而言,回购版本留下了一个/ etc / default / activemq配置文件,该文件以用户“ activemq”运行activemq。 It turns out in previous experiments, I did not kill the old processes running under "activemq" when I start activemq under my own user name. 事实证明,在以前的实验中,当我以自己的用户名启动activemq时,我没有杀死在“ activemq”下运行的旧进程。 There are two activemq processes running under different user names, and when connecting to admin console, I have a 503. 有两个使用不同用户名运行的activemq进程,当连接到管理控制台时,我有一个503。

I delete the /etc/default/activemq file, and kill all activemq processes running under "activemq", then restart activemq with my user name, the 503 is gone. 我删除了/ etc / default / activemq文件,并杀死了在“ activemq”下运行的所有activemq进程,然后使用我的用户名重新启动activemq,503消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM