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

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

    The only solution which work for me: install erlang & rabbitmq from deb, so:

    First remove:

    apt-get purge rabbitmq-server
    apt-get purge erlang
    apt-get autoremove
    reboot
    

    After install wget:

    sudo apt-get -y install socat logrotate init-system-helpers adduser
    sudo apt-get -y install wget
    

    Install erlang:

    wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
    sudo dpkg -i erlang-solutions_1.0_all.deb
    sudo apt-get update
    sudo apt-get install erlang
    

    Install rabbitmq:

    sudo apt-get update
    wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.17/rabbitmq-server_3.7.17-1_all.deb
    sudo dpkg -i rabbitmq-server_3.7.17-1_all.deb
    rm rabbitmq-server_3.7.17-1_all.deb
    

提交回复
热议问题