linux安装rabbitmq傻瓜式安装rabbitmq-server-generic-unix-3.7.16.tar

压缩包mq:rabbitmq-server-generic-unix-3.7.16.tar.xz
压缩包eler:otp_src_22.0.tar.gz

[root@Fan]#  mkdir mnt
[root@Fan]#  ls
[root@Fan]#  cd mnt/
[root@Fan]#  ls
[root@Fan]#  tar -zxvf otp_src_22.0.tar.gz &>/dev/null
[root@Fan]#  ls
[root@Fan]#  xz -d rabbitmq-server-generic-unix-3.7.16.tar.xz
[root@Fan]#  ls
[root@Fan]#  tar -xvf rabbitmq-server-generic-unix-3.7.16.tar &>/dev/null
[root@Fan]#  ls
[root@Fan]#  mkdir -p /usr/local/software/rabbitmq_software
[root@Fan]#  ls
[root@Fan]#  mv otp_src_22.0 /usr/local/software/rabbitmq_software/
[root@Fan]#  mv rabbitmq_server-3.7.16 /usr/local/software/rabbitmq_software/
[root@Fan]#  cd /usr/local/software/rabbitmq_software/
[root@Fan]#  ls
[root@Fan]#  pwd
[root@Fan]#  ls
[root@Fan]#  yum install make gcc gcc-c++ build-essential openssl openssl-devel unixODBC unixODBC-devel kernel-devel m4 ncurses-devel
[root@Fan]#  mkdir -p /usr/local/erlang
[root@Fan]#  ls
[root@Fan]#  cd otp_src_22.0/
[root@Fan]#  ls
[root@Fan]#  ./configure  --prefix=/usr/local/erlang --without-javac
[root@Fan]#  make && make install
[root@Fan]#  vim /etc/profile //添加如下配置信息
            export ERLANG_HOME=/usr/local/erlang
            export PATH=${ERLANG_HOME}/bin:${PATH}
[root@localhost otp_src_22.0]# source /etc/profile  //重新读取配置文件
[root@Fan]#  cat /etc/profile
[root@Fan]#  source /etc/profile
[root@Fan]#  ln -s /usr/local/erlang/bin/erl /usr/local/bin/erl
[root@Fan]#  erl
[root@Fan]#  halt().
[root@Fan]#  vim /etc/profile   //添加如下配置信息
            export RABBITMQ_HOME=/usr/local/software/rabbitmq_software/rabbitmq_server-3.7.16
            export PATH=${RABBITMQ_HOME}/sbin:${PATH}
[root@Fan]#  source /etc/profile
[root@Fan]#  cd /usr/local/software/rabbitmq_software/rabbitmq_server-3.7.16/sbin
[root@Fan]#  ls
[root@Fan]#  ./rabbitmq-plugins enable rabbitmq_management
[root@Fan]#  vim /etc/rc.d/rc.local  //添加如下配置信息
            source /etc/profile
            /usr/local/software/rabbitmq_software/rabbitmq_server-3.7.16/sbin/rabbitmq-server -detached
[root@Fan]#  ./rabbitmq-server -detached
[root@Fan]#     firewall-cmd --add-port=15672/tcp --permanent
[root@Fan]#     firewall-cmd --reload
[root@Fan]#
[root@Fan]#  firewall-cmd --add-port=15672/tcp --permanent
[root@Fan]#  firewall-cmd --reload
[root@Fan]#  cd /usr/local/software/rabbitmq_software/rabbitmq_server-3.7.16/ebin/
[root@Fan]#  vim rabbit.app  //修改
            {loopback_users, [{<<"guest">>]},-->{loopback_users, []},
[root@Fan]#  cd /usr/local/software/rabbitmq_software/rabbitmq_server-3.7.16/sbin/
[root@Fan]#  rabbitmqctl stop
[root@Fan]#  ./rabbitmq-server -detached



访问地址:192.168.110.51:15672
Username 和 Password 默认为guest/guest

你可能感兴趣的:(程序员生活,分布式,经验知识,linux,rabbitmq,unix)