接下来想研究一下mq消息队列,打算在linux上面弄,所以先安装一个Centos 7 ,推荐这个安装教程,感觉比较全面
[root@localhost ~]# 分别代表用户名(root),主机名(localhost),当前路径(~,当前用户的home目录),权限标志位(#代表root,$代表普通用户)
安装rpm包出现信赖错误:
参考安装教程1:
参考安装教程2:
参考安装教程3:
wget、yum、rpm、apt-get区别:
关于weget “无法建立SSL连接”的解决方法:
rabbitmq下载地址:
CentOS7.0 使用root登录桌面:
====================================================
启动服务:
systemctl start rabbitmq-server.service复制代码
查看服务状态:
systemctl status rabbitmq-server.service复制代码
停止服务:
systemctl stop rabbitmq-server.service复制代码
查看rabbit进程:
ps -ef | grep rabbit复制代码
哎, 坑实在太多了,好不容易才弄好了,大家如果在使用”systemctl“有以下问题可以参考下面的地址
Error: unable to perform an operation on node 'rabbit@sXXX-XXX-XXX-XXX'. Please see diagnostics information and suggestions below.Most common reasons for this are: * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues) * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server) * Target node is not runningIn addition to the diagnostics info below: * See the CLI, clustering and networking guides on http://rabbitmq.com/documentation.html to learn more * Consult server logs on node rabbit@sXXX-XXX-XXX-XXXDIAGNOSTICS===========attempted to contact: ['rabbit@sXXX-XXX-XXX-XXX']rabbit@sXXX-XXX-XXX-XXX: * unable to connect to epmd (port 4369) on sXXX-XXX-XXX-XXX: timeout (timed out)Current node details: * node name: 'rabbitmqcli30@sXXX-XXX-XXX-XXX' * effective user's home directory: /var/lib/rabbitmq * Erlang cookie hash: BHd73A3DMRT7tM1xEdGGvg==复制代码
验证一下,我的地址是:,大家访问自己的地址就好,端口是15672
rabbitmq装好了,有时间就继续研究在Java中如何使用mq了。。。