标签:poll log rmi fail failed 内容 web管理 cep 使用
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
yum -y install erlang
[root@study2 opt]# erl -v
Erlang/OTP 19 [erts-8.1] [source-77fb4f8] [64-bit] [async-threads:10] [hipe] [kernel-
poll:false]
Eshell V8.1 (abort with ^G)
1>
打印安装版本
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpm
yum -y install rabbitmq-server-3.6.6-1.el6.noarch.rpm
注:如果报:Requires: socat 更新源
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/s/socat-1.7.2.3-1.el6.x86_64.rpm
yum -y install socat-1.7.2.3-1.el6.x86_64.rpm
rabbitmq-server start
rabbitmq-plugins enable rabbitmq-management
rabbitmqctl add_user admin 123456
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p “/” admin “.” “.” “.*”
用户名admin,密码123456进行登录
遇到问题参考:http://blog.csdn.net/qq315737546/article/details/53105418
到服务器上查询日志显示出现错误的原因是:HTTP access denied: user ‘guest‘ - User can only log in via localhost。
解决:
RabbitMQ从3.3.0开始禁止使用guest/guest权限通过除localhost外的访问。如果想使用guest/guest通过远程机器访问,需要在rabbitmq配置文件中(/etc/rabbitmq/rabbitmq.config)中设置loopback_users为[]。/etc/rabbitmq/rabbitmq.config文件完整内容如下(注意后面的半角句号):
1[{rabbit, [{loopback_users, []}]}].
1、安装erlang以root身份执行下面命令
yum install erlang
yum install erlang xmlto
2、安装epel源
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
3、安装rabbitmq rpm包
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5-1.noarch.rpm
rpm -ivh rabbitmq-server-3.1.5-1.noarch.rpm
4、启动rabbitmq,并验证启动情况 rabbitmq-server --detached &ps aux |grep rabbitmq
5、以服务的方式启动service rabbitmq-server start
6、检查端口5672是否打开
/sbin/iptables -I INPUT -p tcp --dport 5672 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
/etc/init.d/iptables status
7、启用维护插件
rabbitmq-plugins enable rabbitmq_management
8、重启rabbitmq
service rabbitmq-server restart
9、登录http://192.168.110.60:15672/ 用户名密码 guest无法登陆解决办法vim /etc/rabbitmq/rabbitmq.config写入信息,并保存
[{rabbit, [{loopback_users, []}]}].
标签:poll log rmi fail failed 内容 web管理 cep 使用
原文地址:https://www.cnblogs.com/jimoliunian/p/12965064.html