Hello<div><br></div><div>I'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 "testvhost" ...</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 "testuser" ...</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 ".*" ".*" ".*"</div>
<div>Setting permissions for user "testuser" in vhost "testvhost" ...</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="plxweb01" --vhost="testvhost" --username="testuser" --password="testuser123" --queue="testqueue"</div>
<div>testqueue</div><div>[root@plxweb01 rabbitmq]#</div></div><div><br></div><div><br></div><div><br></div><div>I don't understand the concept of an exchange, I thought there were three types (direct,fanout & 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="plxweb01" --vhost="testvhost" --username="testuser" --password="testuser123" --exchange="direct" --body="test message"</div>
<div>closing channel: server channel error 404, message: NOT_FOUND - no exchange 'direct' in vhost 'testvhost'</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="plxweb01" --vhost="testvhost" --username="testuser" --password="testuser123" --exchange="" --body="test message"</div>
<div>[root@plxweb01 rabbitmq]#</div><div>[root@plxweb01 rabbitmq]#</div></div><div><br></div><div><br></div><div>But I can't read from the "default exchange":</div><div><div>[root@plxweb01 rabbitmq]#</div><div>
[root@plxweb01 rabbitmq]# /usr/local/bin/amqp-consume --server="plxweb01" --vhost="testvhost" --username="testuser" --password="testuser123" --exchange="" 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>