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

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

    Thanks to Richard H Fung.

    His steps helped me to solve this issue.

    But I did not have to re-install the rabbitmq.

    When I opened my /etc/hosts file I found that IP assigned to my hostname is different than the actual ip(192.168.1.200 [static]).

    #/etc/hosts  
    127.0.0.1       localhost  
    192.168.1.115   HOSTNAME
    

    so I just changed IP address to 192.168.1.200 in my /etc/hosts file and it worked fine.

提交回复
热议问题