<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>dwt&#039;s life - rabbitmq</title>
<link>https://dwt.life/tag/rabbitmq/</link>
<atom:link href="https://dwt.life/feed/tag/rabbitmq/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Wed, 26 Jan 2022 18:25:00 +0800</lastBuildDate>
<pubDate>Wed, 26 Jan 2022 18:25:00 +0800</pubDate>
<item>
<title>centos7 安装rabbitmq</title>
<link>https://dwt.life/archives/162/</link>
<guid>https://dwt.life/archives/162/</guid>
<pubDate>Wed, 26 Jan 2022 18:25:00 +0800</pubDate>
<dc:creator>Ricky</dc:creator>
<description><![CDATA[erlang安装由于rabbitmq是基于erlang语言开发的，所以必须先安装erlang。安装依赖yum -y install gcc glibc-devel make ncurses-de...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<h1>erlang安装</h1><p>由于rabbitmq是基于erlang语言开发的，所以必须先安装erlang。</p><h2>安装依赖</h2><p><code>yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gtk2-devel binutils-devel</code><br><a href="https://www.erlang.org/downloads">erlang官网</a></p><pre><code class="lang-shell">wget https://ghproxy.com/github.com/erlang/otp/releases/download/OTP-24.2.1/otp_src_24.2.1.tar.gz
tar -zxvf /root/opt_src_24.2.1.tar.gz
mv otp_src_24.2.1 /usr/local/
cd /usr/local/otp_src_24.2.1/
mkdir ../erlang/
./configure --prefix=/usr/local/erlang
make install
echo &#039;export PATH=$PATH:/usr/local/erlang/bin&#039; &gt;&gt; /etc/profile
source /etc/profile</code></pre><p>中间可能会出现这个警告，直接忽略<br><img src="https://s6.jpg.cm/2022/01/26/LvR36i.png" alt="160.png" title="160.png"></p><h2>测试</h2><p><code>erl</code><br><img src="https://pic.8oh.com.cn/cos/2022/01/26/82f40e778b03e_1643192284.png" alt="158.png" title="158.png"></p><pre><code class="lang-erlang">halt().</code></pre><h1>安装rabbitmq</h1><pre><code class="lang-shell">wget https://ghproxy.com/github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.13/rabbitmq-server-generic-unix-3.9.13.tar.xz
yum install -y xz
xz -d rabbitmq-server-generic-unix-3.9.13.tar.xz 
tar -xvf rabbitmq-server-generic-unix-3.9.13.tar 
mv rabbitmq_server-3.9.13/ /usr/local/
cd /usr/local/
mv rabbitmq_server-3.9.13/ rabbitmq
echo &#039;export PATH=$PATH:/usr/local/rabbitmq/sbin&#039; &gt;&gt; /etc/profile
source /etc/profile</code></pre><h1>配置rabbitmq</h1><ol><li>启动<br>rabbitmq-server -detached</li><li>状态检查<br>rabbitmq-server -detached</li><li>开启webui<br>rabbitmq-plugins enable rabbitmq_management</li><li>访问localhost:15672</li><li>设置用户<br>rabbitmqctl list_users<br>rabbitmqctl add_user ricky mima<br>rabbitmqctl set_permissions -p "/" ricky ".<em>" ".</em>" ".*"<br>rabbitmqctl list_user_permissions ricky<br>rabbitmqctl set_user_tags ricky administrator<br>rabbitmqctl delete_user guest</li><li><p>修改系统配置<br>vi /etc/sysctl.conf<br><code>fs.file-max = 100000</code><br><code>sysctl -p</code><br>vi /etc/security/limits.conf</p></li><li>soft     nofile          65536</li><li><p>hard     nofile          65536</p><pre><code>ulimit -n</code></pre></li></ol><p><img src="https://pic.8oh.com.cn/cos/2022/01/26/0a95bb9dd8641_1643192739.png" alt="159.png" title="159.png"></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://dwt.life/archives/162/#comments</comments>
<wfw:commentRss>https://dwt.life/feed/tag/rabbitmq/</wfw:commentRss>
</item>
</channel>
</rss>