知识库

标准化实施手册及常见错误


windows系统安装

<p>[TOC]</p> <p>RabbitMQ 它依赖于Erlang,需要先安装Erlang。首先确定你的window电脑是32位还是64位,以下的安装以window64位电脑举例</p> <h2>一、安装erlang(版本根据情况自行选择)</h2> <p><strong>1.下载地址:</strong> <a href="http://www.erlang.org/downloads">http://www.erlang.org/downloads</a> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/7b769d19c7e4b64eb717cb025ffbc10a" alt="" /></p> <p>2.<strong>运行erlang安装包:</strong> 点击[otp_win64_24.1.7.exe](<a href="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/dabc825820479eb003f443cbf5db85a6">http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/dabc825820479eb003f443cbf5db85a6</a> &quot;[otp_win64_24.1.7.exe&quot;)</p> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/3f5aec58bde4805e6f8b7de31b7bed15" alt="" /> <strong>3.选择安装路径,点击下一步</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/6616bb7becccb38f375d80463f9d937e" alt="" /> <strong>4.点击install</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/786e10c940b1548094238e567a921e67" alt="" /></p> <h2>二、配置erlang环境变量</h2> <p><strong>1.打开windows中,计算机-&gt;属性-&gt;高级系统设置 -&gt;环境变量 中的系统变量,新建一个变量 ERLANG_HOME 值为本机中erlang的安装目录</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/104f864a156864f3db99fe644813a0b8" alt="" /> <strong>2.在用户变量PATH中添加上 %ERLANG_HOME%\bin;</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/56fef304d5153f26edf6ae2260b454d2" alt="" /> <strong>3.打开“开始”菜单 cmd 打开dos环境 输入 erl -version 查看安装版本是否成功即可</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/e1e8002327f01f542de80a2c9e7d11b6" alt="" /></p> <h2>三、安装RabbitMQ Server(版本根据情况自行选择)</h2> <p><strong>1.下载地址:</strong> <a href="http://www.rabbitmq.com/download.html">http://www.rabbitmq.com/download.html</a> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/668b0191ca4e2e1088f13720e06204ae" alt="" /> <strong>2.运行rabbitmq安装包</strong> [rabbitmq-server-3.9.11.exe](<a href="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/be907bfb1b14ac68b10f426e2605d5c3">http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/be907bfb1b14ac68b10f426e2605d5c3</a> &quot;[rabbitmq-server-3.9.11.exe&quot;)</p> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/4ebdcf1148caf2bf1d9613c02e8dfbdd" alt="" /> <strong>3.选择安装路径,点击install</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/ebc7d410f28da0dc2e1f4743d598fecc" alt="" /> <strong>4.检查rabbitmq是否安装正常</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/2f99819e1a4ae673c45fb2d7e6ac59c2" alt="" /> 已默认注册成服务 <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/a658d470cd945c9a075abf9078ffc33d" alt="" /></p> <h2>四、设置数据目录</h2> <p><strong>1.用管理员权限运行cmd</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/ee02ea3409eb9f558b2a20c3d8469ff9" alt="" /> <strong>2.然后进入rabbitmq安装sbin目录</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/25e7c885c5a04a06df4c171c428cdd1d" alt="" /> <strong>3.设置数据存储路径为:E:\soft\rabbitmq\data</strong> 在cmd依次执行以下命令</p> <pre><code class="language-shell">rabbitmq-service.bat remove set RABBITMQ_BASE=E:\soft\rabbitmq\data rabbitmq-service.bat install</code></pre> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/d53e891f42bb2c7d62c2b2a8e2f401bb" alt="" /> <strong>4.启动RabbitMQ server</strong></p> <pre><code class="language-shell">net start RabbitMQ</code></pre> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/95fb00ce2864e8627c480e4fd05bafd0" alt="" /> <strong>5.重置并启动管理插件</strong></p> <pre><code class="language-shell">rabbitmqctl stop_app rabbitmqctl reset rabbitmq-plugins enable rabbitmq_management rabbitmqctl start_app</code></pre> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/45168574a9fa3140839fde35b6c69b73" alt="" /> <strong>6.查看数据是否存储到指定路径</strong> E:\soft\rabbitmq\data <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/d86785340262cd66986f3e553f237021" alt="" /> <strong>7.创建admin账号并授权远程访问</strong></p> <pre><code class="language-shell">rabbitmqctl add_user admin {your password} rabbitmqctl set_user_tags admin administrator</code></pre> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/30c4f0b1d7b041b652da19f2ce4897cd" alt="" /></p> <pre><code class="language-shell">rabbitmqctl set_permissions -p / admin '.*' '.*' '.*'</code></pre> <p><img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/763f8ac0e1fc3b7aeeb8ab985cf9af26" alt="" /></p> <h2>五、验证</h2> <p><strong>1.浏览器输入:ip:15672 访问验证</strong> 输入用户名和密码,初始化的默认用户名和密码是:guest/guest <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/113405a4eae68cd12eb6fcbe55d9f6f6" alt="" /> 我们发现默认用户是禁止用ip远程登录的 <strong>2.使用新建用户访问</strong> admin/risen@2021 <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/c7dd125e7458e95dcfb6d545c9fc0513" alt="" /> 新建授权的用户可以正常访问 <strong>安装完成</strong></p>

页面列表

ITEM_HTML