rabbitmq-server fails to start after hostname has changed for first time

后端 未结 13 1990
予麋鹿
予麋鹿 2021-02-01 12:43

I am using django-celery for my django project. Last day I have changed my computer\'s hostname (I am using Ubuntu 12.04, edited file \'/etc/hostname\'), and after next restart

相关标签:
13条回答
  • 2021-02-01 13:12

    Remove the old installation of RabbitMQ to fix this problem. Here are steps to reinstall RabbitMQ. These commands are run as the root user:

    1. Stop RabbitMQ: rabbitmqctl stop

    2. Change /etc/hosts

    3. Change /etc/hostname

    4. Uninstall old RabbitMQ: dpkg -P rabbitmq-server

    5. Remove RabbitMQ’s database: rm -rf /var/lib/rabbitmq

    6. Find erlang’s process that is running rabbit: ps ax | grep rabbit

    7. Kill the listed process

    8. Reinstall RabbitMQ: apt-get install rabbitmq-server

    I wrote about these steps on my blog.

    REVISION

    I moved my blog to a new website.

    0 讨论(0)
提交回复
热议问题