RabbitMQ on Ubuntu 10.04 Server

混江龙づ霸主 提交于 2021-02-07 06:13:50

问题


Trying to run RabbitMQ on VPS with Ubuntu 10.04. Doing everything like usual:

  • added RabbitMQ deb repo
  • updated with apt-get update
  • installed with apt-get install rabbitmq-server

On my local machine with Ubuntu 11.10 and another VPS with same 10.04 everything works just fine. But on this one i getting error like this (from /var/log/rabbitmq/startup_log):

    Activating RabbitMQ plugins ...

********************************************************************************
********************************************************************************

0 plugins activated:

ERROR: epmd error for host "67714": badarg (unknown POSIX error)

What i'm doing wrong and wtf is this?


回答1:


The following worked for me on Fedora 16, thanks to an anonymous hint.

su
    vim /etc/hosts
        127.0.0.1 localhost.localdomain   localhost  YOUR-HOSTNAME
        ::1       localhost6.localdomain6 localhost6
    service rabbitmq-server start

For example, suppose your hostname is 67714.

su
    vim /etc/hosts
        127.0.0.1 localhost.localdomain   localhost  67714
        ::1       localhost6.localdomain6 localhost6
    service rabbitmq-server start



回答2:


This worked for me on CentOS 5.8 when I was unable to use the /etc/hosts file to fix it:

  1. Create a rabbitmq environment variables config file at /etc/rabbitmq/rabbitmq-env.conf
  2. Add NODENAME=rabbit@localhost to it (note that just localhost didn't work)
  3. sudo service rabbitmq-server start

To see more about config options, check this out: http://www.rabbitmq.com/configure.html#customise-general-unix-environment.




回答3:


I had the same problem and was able to solve it simply by removing a numerical HOSTNAME that I was using and replacing it with a normal alphabetic word for example: my hostname was 1989 and i replaced it with tadiwa



来源:https://stackoverflow.com/questions/8633882/rabbitmq-on-ubuntu-10-04-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!