rabbitmq安装错误集
Posted 愤怒中的小草
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rabbitmq安装错误集相关的知识,希望对你有一定的参考价值。
1.安装依赖
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC unixODBC-devel httpd python-simplejson
2.yum install erlang
export PATH=$PATH:/usr/lib/erlang
检查erlang是否安装成功
find / -name erlang
find / -name erl
执行/usr/lib/erlang/bin/erl
查看erlang版本
[[email protected] rabbit]# erl
Erlang R16B03-1 (erts-5.10.4) [source] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.4 (abort with ^G)
第一种安装的erlang版本过低
下载
wget http://erlang.org/download/otp_src_19.3.tar.gz
配置cd otp_src_19.3:
./configure --enable-smp-support --enable-threads --enable-sctp --enable-kernel-poll --enable-hipe --with-ssl
卸载办法
--prefix=path:
./configure --prefix=/usr/lib/erlang
./configure && make && make install
wget www.rabbitmq.com/releases/rabbitmq-server/v1.8.1/rabbitmq-server-1.8.1-1.noarch.rpm
[[email protected] rabbit]# rpm -ivh rabbitmq-server-3.7.5-1.el7.noarch.rpm
warning: rabbitmq-server-3.7.5-1.el7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 6026dfca: NOKEY
error: Failed dependencies:
erlang >= 19.3 is needed by rabbitmq-server-3.7.5-1.el7.noarch
[[email protected] rabbit]# yum -y install socat
Loaded plugins: langpacks, refresh-packagekit
Package socat-1.7.2.4-1.fc19.i686 already installed and latest version
依赖解决不了,强制安装
rpm -i --nodeps rabbitmq-server-3.7.5-1.el7.noarch.rpm
从官网来看,RabbitMQ有两个配置文件,使用RPM方式安装:
RabbitMQ的根目录:/var/lib/rabbitmq /usr/lib/rabbitmq/bin
RabbitMQ的配置文件目录:/etc/rabbitmq/
RabbitMQ的日志文件目录:/var/log/rabbitmq
两个配置文件分别是:
rabbitmq.config
rabbitmq-env.conf
添加启动项
[[email protected] bin]# chkconfig rabbitmq-server on
Note: Forwarding request to ‘systemctl enable rabbitmq-server.service‘.
ln -s ‘/usr/lib/systemd/system/rabbitmq-server.service‘ ‘/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service‘
启动
[[email protected] bin]# ./rabbitmq-server
## ##
## ## RabbitMQ 3.7.5. Copyright (C) 2007-2018 Pivotal Software, Inc.
########## Licensed under the MPL. See http://www.rabbitmq.com/
###### ##
########## Logs: /var/log/rabbitmq/[email protected]
/var/log/rabbitmq/[email protected]_upgrade.log
Starting broker...
completed with 0 plugins.
查看当前的用户列表
rabbitmqctl list_users
./rabbitmq-server -detached
./rabbitmqctl status
./rabbitmqctl stop
./rabbitmq-server &
查看一下当前启动的端口,并没有发现rabbit:
netstat -lnutp
启动用web管理
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl set_permissions -p "/" admin "." "." ".*"
删除IPsusudo ip addr del 192.168.0.193/24 dev wlan0
[[email protected] bin]# rabbitmq-plugins enable rabbitmq_management
warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
Applying plugin configuration to [email protected]
The following plugins have been enabled:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
set 3 plugins.
Offline change; changes will take effect at broker restart.
缺少三个
www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-generic-unix-3.6.9.tar.xz
yum install xz
xz -d xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz
[[email protected] etc]# service rabbitmq-server start
Job for rabbitmq-server.service failed. See ‘systemctl status rabbitmq-server.service‘ and ‘journalctl -xn‘ for details.
systemctl status rabbitmq-server.service 查看
尝试下面的操作:
禁用 SELinux ,修改 /etc/selinux/config
SELINUX=disabled
修改后重启系统
还是不行
查看具体错误信息
按照提示,执行提示中的命令:journalctl -xe
./configure --prefix=/usr/local/erlang --without-javac
export PATH=$PATH:/usr/local/erlang
# /usr/local/erlang/bin/erl
yum list | grep ssl
yum install unixODBC-dev
********************** APPLICATIONS DISABLED **********************
*********************************************************************
crypto : No usable OpenSSL found
jinterface : Java compiler disabled by user
ssh : No usable OpenSSL found
ssl : No usable OpenSSL found
*********************************************************************
*********************************************************************
********************** APPLICATIONS INFORMATION *******************
*********************************************************************
wx : wxWidgets not found, wx will NOT be usable
*********************************************************************
*********************************************************************
********************** DOCUMENTATION INFORMATION ******************
*********************************************************************
documentation :
fop is missing.
Using fakefop to generate placeholder PDF files.
***************************
总结:建议虚拟机使用centos7
以上是关于rabbitmq安装错误集的主要内容,如果未能解决你的问题,请参考以下文章
RabbitMQ安装(发生系统错误5。拒绝访问。发生系统错误1067。进程意外终止。)
rabbitmq-server 安装 CentOS - Erlang 错误
安装php rabbitmq扩展,继上一篇安装Rabbitmq