- 安装Erlang
- 创建一个目录/usr/local/rabbitmq
3.上传esl-erlang_17.3-1~centos~6_amd64.rpm
https://pan.baidu.com/s/1tSdqy1BW2LaVf4e4a9YXPQ
执行 yum install esl-erlang_17.3-1~centos~6_amd64.rpm
解决方法分别输入
yum install epel-release
yum install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-gl
上传
esl-erlang-compat-R14B-1.el6.noarch.rpm
yum install esl-erlang-compat-R14B-1.el6.noarch.rpm
安装RABBITMQ
上传rabbitmq-server-3.4.1-1.noarch.rpm文件到/usr/local/src/rabbitmq/
https://pan.baidu.com/s/1v78BMQKe0HDeCqkaplCVcw
安装
rpm -ivh rabbitmq-server-3.4.1-1.noarch.rpm
启动、停止
service rabbitmq-server start
service rabbitmq-server stop
service rabbitmq-server restart
设置开机启动
chkconfig rabbitmq-server on
设置配置文件
cd /etc/rabbitmq
cp /usr/share/doc/rabbitmq-server-3.4.1/rabbitmq.config.example /etc/rabbitmq/
mv rabbitmq.config.example rabbitmq.config
开启远程访问
vi /etc/rabbitmq/rabbitmq.config
开启web界面管理工具
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
把15672 和5672 添加到防火墙内