安装
sudo apt-get install phpsudo apt-get install rabbitmq-serversudo apt-get install php-bcmath php-mbstring php-dom php-curlsudo apt-get install composersudo apt-get install gitsudo mkdir rabbitmqcd rabbitmqgit clone https://github.com/php-amqplib/php-amqplib.gitcd php-amqplibcomposer update同时打开2个窗口分别执行php amqp_publisher.phpphp amqb_consumer.php
测试
打开管理页面 sudo rabbitmq-plugins enable rabbitmq_management查看安装的插件 sudo rabbitmqctl list_users查看用户 sudo rabbitmqctl list_users新增管理员用户 sudo rabbitmqctl add_user admin admin sudo rabbitmqctl set_user_tags admin administrator用刚设置的账户登录管理页面 http://127.0.0.1:15672