最近在自己机器上安装Activemq, 但是启动之后, 访问管控台, 出现HTTP ERROR: 503错误 : 
linux下解决activeMQ访问后台页面报503页面

1 查看机器名

[[email protected] bin]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain

2 修改hosts文件

[[email protected] bin]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

默认的机器名是 [[email protected] bin]    localhost

如果[[email protected] ] 不是localhost  而是 [[email protected] ]

那么 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 这个后面添加

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 it123

于是使用”./activemq stop”停掉服务 . 

使用”./activemq console”启动服务, 观察启动日志 . 
果然出现下面错误 : 
linux下解决activeMQ访问后台页面报503页面
因为我的主机名修改为”mayuan”, 但是却没有在hosts中配置 , 所以应该去修改hosts文件 : 
vim /etc/hosts 
后面添加主机名, 保存退出 
linux下解决activeMQ访问后台页面报503页面
然后重新启动activemq, 再次访问就不会报错.

相关文章:

  • 2021-10-11
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-04-15
  • 2022-02-06
猜你喜欢
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-12-23
  • 2021-11-18
  • 2022-03-02
相关资源
相似解决方案