2017-07-31 18 views
2

このガイドhttps://www.rabbitmq.com/install-debian.htmlに従って、rabbitmq-serverをインストールしました。しかし、それはエラーメッセージを表示して起動しません。rabbitmq-serverが起動しない - epmd/Ubuntuに接続できない16.04

Jul 31 20:29:49 76672.local rabbitmqctl[7519]: attempted to contact: [[email protected]] 
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: [email protected]: 
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: * unable to connect to epmd (port 4369) on 76672: badarg (unknown POSIX error) 
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: current node details: 
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: - node name: '[email protected]' 
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: - home dir: /var/lib/rabbitmq 
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: - cookie hash: VwJCJ/LkSvmUKaoPOglCcQ== 
Jul 31 20:29:49 76672.local systemd[1]: Failed to start RabbitMQ broker. 
Jul 31 20:29:49 76672.local systemd[1]: rabbitmq-server.service: Unit entered failed state. 
Jul 31 20:29:49 76672.local systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'. 
dpkg: error processing package rabbitmq-server (--configure): 
subprocess installed post-installation script returned error exit status 1 
Processing triggers for systemd (229-4ubuntu17) ... 
Processing triggers for ureadahead (0.100.0-19) ... 
Errors were encountered while processing: 
rabbitmq-server 
E: Sub-process /usr/bin/dpkg returned an error code (1) 
[email protected]: 

私はUbuntuでの明確なインスタンス上でこのインストールを実行しようとしましたし、同じエラーを得ました。私は、エラーメッセージをGoogle検索し、それは私はネットワークの設定にいくつかの問題があるようだ - 私は、デフォルトの状態からいくつかの設定を変更する必要がありますね。

何を変更する必要がありますか?または、どの設定で私が最初に試してみるべきですか?

P.S.私はUnixでは全く初心者です。私にとっては、Pythonスクリプトを実行するだけのクラウド環境です。

+0

は、それはおそらく、新規インストールに異なった構成のクラウドENVなので、この記事を参照してください。https://stackoverflow.com/questions/23106813/error-with-rabbit-mq-サーバー - PSそれに固執すると、Linuxはdev/production ...のために行く方法です;) –

答えて

1

ファイルrabbitmq-env.confにHOSTNAMEを設定して問題を解決しました。私は最初に問題の原因を正確には知らなかった。

マイセッティング:

sudo cat /etc/hostname 
76672.localhost 

sudo cat /etc/hosts 
127.0.0.1 localhost 
127.0.1.1 ubuntu16.04 ubuntu16 
# The following lines are desirable for IPv6 capable hosts 
::1  localhost ip6-localhost ip6-loopback 
ff02::1 ip6-allnodes 
ff02::2 ip6-allrouters 
127.0.0.1 76672.local 

/etc/rabbitmq/rabbitmq-env.conf 
# Empty - if the file is empty rabbitmq doesn't start 
HOSTNAME=76672.local # With this rabbitmq doesn't start either 
HOSTNAME=localhost # With this all works 
+0

'/ etc/hostname'(' 76672.localhost')のホスト名はおそらくIPアドレスに解決されません。それは '/ etc/hosts'(' 76672.local'のみ)には言及されていません。 Erlangは、ホスト名が何かに解決されることを要求しています。 –

関連する問題