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

后端 未结 13 2019
予麋鹿
予麋鹿 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:09

    To solve this problem, I changed my /etc/hostname file with the new hostname then restarted the machine. After that, I ran rm -rf /var/lib/rabbitmq/mnesia/*

    Then restarted the service : sudo service rabbitmq-server restart

    At this point, it worked for me. If it still don't work, modify the file /etc/rabbitmq/rabbitmq-env.conf by adding those informations :

    NODENAME=rabbit@YOUR_NEW_HOSTNAME
    NODE_IP_ADDRESS=127.0.0.1
    NODE_PORT=5672
    

    Then restart the service : sudo service rabbitmq-server restart

    Hope it helps.

提交回复
热议问题