rabbitmq启动失败(BOOT FAILED)
之前启动正常的rabbitmq, 今天再次启动时, 居然报错了, 错误信息如下:
$ rabbitmq-server RabbitMQ 3.6.6. Copyright (C) 2007-2016 Pivotal Software, Inc. ## ## Licensed under the MPL. See http://www.rabbitmq.com/ ## ## ########## Logs: /Applications/Coding/rabbitmq/var/log/rabbitmq/rabbit@newbie.log ###### ## /Applications/Coding/rabbitmq/var/log/rabbitmq/rabbit@newbie-sasl.log ########## Starting broker... BOOT FAILED =========== Error description: {could_not_start,rabbit, {undef, [{crypto,module_info,[attributes],[]}, {rabbit_misc,module_attributes,1, [{file,"src/rabbit_misc.erl"},{line,798}]}, {rabbit_misc,-all_module_attributes/1-fun-0-,3, [{file,"src/rabbit_misc.erl"},{line,818}]}, {lists,foldl,3,[{file,"lists.erl"},{line,1261}]}, {rabbit_boot_steps,find_steps,1, [{file,"src/rabbit_boot_steps.erl"},{line,40}]}, {rabbit_boot_steps,run_boot_steps,1, [{file,"src/rabbit_boot_steps.erl"},{line,26}]}, {rabbit,start,2,[{file,"src/rabbit.erl"},{line,687}]}, {application_master,start_it_old,4, [{file,"application_master.erl"},{line,272}]}]}} Log files (may contain more information): /Applications/Coding/rabbitmq/var/log/rabbitmq/rabbit@newbie.log /Applications/Coding/rabbitmq/var/log/rabbitmq/rabbit@newbie-sasl.log {"init terminating in do_boot",{could_not_start,rabbit,{undef,[{crypto,module_info,[attributes],[]},{rabbit_misc,module_attributes,1,[{file,"src/rabbit_misc.erl"},{line,798}]},{rabbit_misc,-all_module_attributes/1-fun-0-,3,[{file,"src/rabbit_misc.erl"},{line,818}]},{lists,foldl,3,[{file,"lists.erl"},{line,1261}]},{rabbit_boot_steps,find_steps,1,[{file,"src/rabbit_boot_steps.erl"},{line,40}]},{rabbit_boot_steps,run_boot_steps,1,[{file,"src/rabbit_boot_steps.erl"},{line,26}]},{rabbit,start,2,[{file,"src/rabbit.erl"},{line,687}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}} Crash dump was written to: erl_crash.dump init terminating in do_boot ()折腾一番, 发现是erlang没有装好, 之前重新安装过homebrew, 怀疑是之前被我卸载掉了
重新安装erlang
$ brew install erlang Updating Homebrew... ==> Installing dependencies for erlang: openssl, jpeg, libpng, libtiff, wxmac ==> Installing erlang dependency: openssl ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2k.el_capitan.bottle.tar.gz ######################################################################## 100.0% ==> Pouring openssl-1.0.2k.el_capitan.bottle.tar.gz ==> Using the sandbox ==> Caveats A CA file has been bootstrapped using certificates from the SystemRoots keychain. To add additional certificates (e.g. the certificates added in the System keychain), place .pem files in /usr/local/etc/openssl/certs and run /usr/local/opt/openssl/bin/c_rehash This formula is keg-only, which means it was not symlinked into /usr/local. Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries If you need to have this software first in your PATH run: echo export PATH="/usr/local/opt/openssl/bin:$PATH" >> ~/.bash_profile For compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/openssl/lib CPPFLAGS: -I/usr/local/opt/openssl/include ==> Summary
上一篇:
IDEA上Java项目控制台中文乱码