1. 程式人生 > >rabbitmq安裝錯誤集

rabbitmq安裝錯誤集

日誌 .gz 錯誤信息 ica req nss cal 成功 exp

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版本
[root@localhost 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
[root@localhost 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
[root@localhost 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
添加啟動項
[root@localhost 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‘
啟動
[root@localhost 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/rabbit@localhost_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

[root@localhost 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 rabbit@localhost...
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

[root@localhost 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安裝錯誤集