RabbitMq 安装

Linux ( CentOs 6.7 ) 安装 RabbitMq

一、安装教程

1.Linux 安装的系统版本号

命令:cat /etc/issue

参考博文:
http://www.linuxidc.com/Linux/2014-12/110748.htm

2.系统版本 centOs 6.7

安装教程:
http://www.cnblogs.com/kgdxpr/p/5960151.html

对比了其他的一些安装教程的博客,描述简单,最重要的是,提供了安装的软件包

3.备注:
安装过程中遇到的问题

3.1
./configure = .... 一个路径
执行 tar -zxvf 是将 *.gz 解压,
./configure 是编译安装
此处,安装时理解错误,以为是配置安装路径,所以与博客上说明的地址不同,但结果是一样的,可以正常使用

参考博文:
https://my.oschina.net/indestiny/blog/192313

3.2 启动服务时报错
rabbitmq-server: unrecognized service

解决方式:
cd ../sbin
./rabbitmq-server started 而不是用 service 进行启动

参考博文:
https://my.oschina.net/hanzhankang/blog/201515

3.3 客户端访问
http://192.168.76.134:15672/#/

启动服务后,执行添加命令,如果复制上述命令,执行后未有提示语
比如 xx add_users xxx xxx
提示:create xxx success
不要复制,照着命令执行一下

3.4 客户端端口开放命令
如果连接失败或连接超时

/sbin/iptables -I INPUT -p tcp --dport 15672 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart

参考博文
http://blog.csdn.net/pa5201314/article/details/47170505

3.5 添加用户
添加新的用户,具有更高权限的用户
http://www.centoscn.com/image-text/install/2016/0616/7448.html

4.遗留问题

configure 文件配置:打开本地客户端(浏览器)
提示 配置文件 not found

http://backend.blog.163.com/blog/static/2022941262014315101435549/

猜你喜欢

转载自mingyundezuoan.iteye.com/blog/2376895