Hello<div><br></div><div>I&#39;m looking for some help setting up rabbitmq-server.</div><div><br></div><div>Rabbit server installed:</div><div>rabbitmq-server-2.2.0-1.fc14.noarch</div><div><br></div><div>C-Client installed:</div>
<div><div>/usr/local/bin/amqp-delete-queue</div><div>/usr/local/bin/amqp-get</div><div>/usr/local/bin/amqp-declare-queue</div><div>/usr/local/bin/amqp-publish</div><div>/usr/local/bin/amqp-consume</div></div><div><br></div>
<div><br></div><div>I then went on to configure the server...</div><div><br></div><div>Create vhost:</div><div>[root@plxweb01 rabbitmq]#</div><div><div>[root@plxweb01 rabbitmq]# rabbitmqctl add_vhost testvhost</div><div>Creating vhost &quot;testvhost&quot; ...</div>
<div>...done.</div><div>[root@plxweb01 rabbitmq]#�</div><div><br></div><div><br></div><div>Create user:</div><div>[root@plxweb01 rabbitmq]#</div><div>rabbitmqctl add_user testuser testuser123</div><div>Creating user &quot;testuser&quot; ...</div>
<div>...done.</div><div>[root@plxweb01 rabbitmq]#</div></div><div><div>[root@plxweb01 rabbitmq]#</div><div><br></div><div><br></div><div>Set user permissions:</div><div>[root@plxweb01 rabbitmq]#</div><div>[root@plxweb01 rabbitmq]# rabbitmqctl set_permissions -p testvhost testuser &quot;.*&quot; &quot;.*&quot; &quot;.*&quot;</div>
<div>Setting permissions for user &quot;testuser&quot; in vhost &quot;testvhost&quot; ...</div><div>...done.</div><div>[root@plxweb01 rabbitmq]#</div></div><div><br></div><div><br></div><div>Declare a queue:</div><div><div>
[root@plxweb01 rabbitmq]#</div><div>[root@plxweb01 rabbitmq]# /usr/local/bin/amqp-declare-queue --server=&quot;plxweb01&quot; --vhost=&quot;testvhost&quot; --username=&quot;testuser&quot; --password=&quot;testuser123&quot; --queue=&quot;testqueue&quot;</div>
<div>testqueue</div><div>[root@plxweb01 rabbitmq]#</div></div><div><br></div><div><br></div><div><br></div><div>I don&#39;t understand the concept of an exchange, I thought there were three types (direct,fanout &amp; topic) ......but how do I specify the exchange? Do I need to create/associate an exchange?�</div>
<div><br></div><div><div>[root@plxweb01 rabbitmq]#</div><div>[root@plxweb01 rabbitmq]# /usr/local/bin/amqp-publish --server=&quot;plxweb01&quot; --vhost=&quot;testvhost&quot; --username=&quot;testuser&quot; --password=&quot;testuser123&quot; --exchange=&quot;direct&quot; --body=&quot;test message&quot;</div>
<div>closing channel: server channel error 404, message: NOT_FOUND - no exchange &#39;direct&#39; in vhost &#39;testvhost&#39;</div><div>[root@plxweb01 rabbitmq]#</div><div><br></div><div><br></div><div>It looks like I can publish something by specifying an empty string for exchange:</div>
<div><br></div><div>[root@plxweb01 rabbitmq]# /usr/local/bin/amqp-publish --server=&quot;plxweb01&quot; --vhost=&quot;testvhost&quot; --username=&quot;testuser&quot; --password=&quot;testuser123&quot; --exchange=&quot;&quot; --body=&quot;test message&quot;</div>
<div>[root@plxweb01 rabbitmq]#</div><div>[root@plxweb01 rabbitmq]#</div></div><div><br></div><div><br></div><div>But I can&#39;t read from the &quot;default exchange&quot;:</div><div><div>[root@plxweb01 rabbitmq]#</div><div>
[root@plxweb01 rabbitmq]# /usr/local/bin/amqp-consume �--server=&quot;plxweb01&quot; --vhost=&quot;testvhost&quot; --username=&quot;testuser&quot; --password=&quot;testuser123&quot; --exchange=&quot;&quot; cat</div><div>Server provided queue name: amq.gen-+griWnCcj8DyRPBHX5eiDQ==</div>
<div>queue.bind: server channel error 403, message: ACCESS_REFUSED - operation not permitted on the default exchange</div><div>[root@plxweb01 rabbitmq]#</div></div><div><br></div><div><br></div><div>Any help would be much appreciated!!!</div>
<div><br></div><div>Thanks</div><div>Bruce</div><div><br></div><div><br></div><div><br></div>