centos7安装rabbitmq
1.检查版本
2.安装erlang
安装依赖包
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel libxml2-utils libxml2 libxslt openssl-devel unixODBC unixODBC-devel unixODBC-bin gtk2 fop gtk2-devel binutils-devel mesa-libGLU-devel
[root@localhost rabbitmq]# wget http://erlang.org/download/otp_src_23.0.tar.gz
[root@localhost rabbitmq]# tar -zvxf otp_src_23.0.tar.gz
[root@localhost rabbitmq]# cd otp_src_23.0
[root@localhost otp_src_23.0]# ./configure --prefix=/usr/local/erlang --without-javac
[root@localhost otp_src_23.0]# make && make install
报错:
wx : wxWidgets not found, wx will NOT be usable
解决方法:
wget https://netix.dl.sourceforge.net/project/wxwindows/3.0.1/wxWidgets-3.0.1.tar.bz2 bzip2 -dkv wxWidgets-3.0.1.tar.bz2 tar -xvf wxWidgets-3.0.1.tar cd wxWidgets-3.0.1/ ./configure --with-opengl --enable-debug --enable-unicode make && make install
报错:configure: error: OpenGL libraries not available
解决方法:
yum install mesa *
yum install freeglut*
3.安装rabbitmq
[root@localhost rabbitmq]# wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.5/rabbitmq-server-generic-unix-3.8.5.tar.xz
[root@localhost rabbitmq]# xz -d rabbitmq-server-generic-unix-3.8.5.tar.xz
[root@localhost rabbitmq]# tar -xvf rabbitmq-server-generic-unix-3.8.5.tar
[root@localhost rabbitmq]# mv rabbitmq-server-generic-unix-3.8.5/ /usr/local/rabbitmq-3.8.5
4.添加系统变量
[root@localhost rabbitmq]# vim /etc/profile
export PATH=$PATH:/usr/local/erlang/bin
export PATH=$PATH:/usr/local/rabbitmq-3.8.5/sbin
[root@localhost rabbitmq]# source /etc/profile
5.启动web插件 启动rabbitmq
[root@localhost rabbitmq]# rabbitmq-plugins enable rabbitmq_management
[root@localhost ~]# rabbitmq-server -detached
6.添加远端登录账户
[root@localhost ~]# rabbitmqctl add_user admin 123456
[root@localhost ~]# rabbitmqctl set_user_tags admin administrator
#将admin 设置为远端登录
[root@localhost ~]# rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
浏览器输入:http://192.168.5.3:15672
欢迎关注,一个注在共享、交流的Java学习平台。