Linux 安装rabbitmq
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
2)安装ncurses
yum -y install ncurses-devel
3)安装erlang环境
官网下载地址 wget http://erlang.org/download/otp_src_18.2.1.tar.gz
百度云下载地址 https://pan.baidu.com/s/1_a3qMjpVh4Ru2f1OKbkXDg
下载到这个目录下/usr/local/src/otp_src_18.2.1.tar.gz
tar xvfz otp_src_18.2.1.tar.gz
cd otp_src_18.2.1
./configure --prefix=/usr/local/src/erlang #校验安装信息并且设定安装路径
最终会出现下面的错误
config.status: include/x86_64-unknown-linux-gnu/erl_native_features_config.h is unchanged ********************************************************************* ********************** APPLICATIONS DISABLED ********************** *********************************************************************
odbc : ODBC library - link check failed
********************************************************************* ********************************************************************* ********************** APPLICATIONS INFORMATION ******************* *********************************************************************
wx : wxWidgets not found, wx will NOT be usable
********************************************************************* ********************************************************************* ********************** DOCUMENTATION INFORMATION ****************** *********************************************************************
documentation : fop is missing. Using fakefop to generate placeholder PDF files. |
yum install unixODBC unixODBC-devel
然后再执行 ./configure --prefix=/usr/local/src/erlang #odbc的错误已经解决其它的错误可以忽略
make && make install
vi /etc/profile
export PATH=$PATH:/usr/local/src/erlang/bin
source /etc/profile
测试Erlang是否安装成功
官网下载地址: wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-generic-unix-3.6.9.tar.xz
百度云下载地址: https://pan.baidu.com/s/1NZLEFYTehL_LhEQwghL8Ow
tar -xvf rabbitmq-server-generic-unix-3.6.9.tar
/usr/local/src/rabbitmq_server-3.6.9/sbin
export PATH=/usr/local/src/rabbitmq_server-3.6.9/sbin:$PATH
source /etc/profile
#rabbitmq
-A INPUT -p tcp -m state --state NEW -m tcp --dport 4369 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 15672 -j ACCEPT
service iptables restart #重启防火墙
进入到cd /usr/local/src/rabbitmq_server-3.6.9/sbin
./rabbitmq-plugins enable rabbitmq_management #启动后台管理
./rabbitmq-server -detached #后台运行rabbitmq
进入到cd /usr/local/src/rabbitmq_server-3.6.9/sbin
./rabbitmqctl add_user admin admin
./rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
./rabbitmqctl set_user_tags admin administrator
http://ip:15672/ admin admin
进入到cd /usr/local/src/rabbitmq_server-3.6.9/sbin
./rabbitmqctl status #查看状态
当执行./rabbitmqctl status 时出现下列错误
此时将rabbitmq的目录包rabbitmq_server-3.6.9 全部删除
然后重新解压rabbitmq-server-generic-unix-3.6.9.tar 进行安装