本文介绍了Rabbit-MQ服务器出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用devstack在Ubuntu 12.04上设置OpenStack.现在,我得到的错误是:
I am trying to setup OpenStack on Ubuntu 12.04 using devstack. Now, the error I am getting is:
Setting up rabbitmq-server (2.7.1-0ubuntu4) ...
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
++ err_trap
++ local r=100
++ set +o xtrace
stack.sh failed
知道我为什么会收到此错误吗?
Any idea why am I getting this error?
推荐答案
当hosts文件中的主机名或ip地址不匹配时,我两次遇到此问题.因此,请检查您是否在/etc/hosts文件中提供了正确的IP地址和主机名
I had this issue twice, when either hostname or ip address in the hosts file didn't match.Therefore, check that you provide the correct ip address and hostname in the /etc/hosts file
- 运行
sudo cat /etc/hostname
以查看您的主机名
- Run
sudo cat /etc/hostname
to see your hostname
输出:
yoursite
- 运行
sudo nano /etc/hosts
文件包含:
127.0.0.1 yoursite
从cat/etc/hostname中可以看到,主机名与/etc/hosts中的主机名相同:
As you see from cat /etc/hostname, hostname is the same as in the /etc/hosts:
- 运行
sudo rabbitmq-server start
以启动Rabbitmq服务器
- Run
sudo rabbitmq-server start
to start the rabbitmq-server
这篇关于Rabbit-MQ服务器出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!