安装
mkdir /data/install
cd /data/install
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
wget http://distfiles.macports.org/erlang/otp_src_21.1.tar.gz
tar zxvf otp_src_21.1.tar.gz
./configure --prefix=/data/install/erlang --without-javac
make
make install
vi /etc/profile
追加内容
export PATH=$PATH:/data/install/erlang/bin
source /etc/profile
sudo rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
wget https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.7.x/el/7/noarch/rabbitmq-server-3.7.14-1.el7.noarch.rpm
rpm -i --nodeps rabbitmq-server-3.7.14-1.el7.noarch.rpm
mkdir /www/wwwroot/rabbitmq
chmod -R 777 /www/wwwroot/rabbitmq
cd /etc/rabbitmq
vi rabbitmq-env.conf
#保存以下内容
RABBITMQ_MNESIA_BASE=/www/wwwroot/rabbitmq/rabbitmq-server/data
RABBITMQ_LOG_BASE=/www/wwwroot/rabbitmq/rabbitmq-server/log
# 启用管理员插件
rabbitmq-plugins enable rabbitmq_management
# 添加管理员
rabbitmqctl add_user admin 123456
# 分配标签
rabbitmqctl set_user_tags admin administrator
# 后台运行
rabbitmq-server -detached
http://xxx.xxx.xxx.xxx:15672/