更多内容: http://blog.yuhai.win
rabbitmq 安装
http://www.linuxidc.com/Linux/2016-03/129557.htm
php amqp 插件安装
http://blog.youkuaiyun.com/i_bruce/article/details/40300125
rabbitmq 安装
1、erlang 安装
2 、下载 rabbitmq http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.7/
3、解压 安装包就可以
4、启动服务 ./rabbitmq-server -detached
5、查看服务 ./rabbitmqctl status
6、关闭服务 ./rabbitmqctl stop
7、启动插件
./rabbitmq-pluguns enable rabbitmq_manament
8、默认可以 使用 15672 进行web网页管理
http://localhost:15672
php amqp 插件安装
1、安装 autoreconf
yum install libtool autoconf automake
2、下载 rabbitmq-c 和 rabbitmq-codegen,解压并将 rabbitmq-codegen 解压的文件夹
mv 到rabbitmq-c 下重命名 codegen
3、autoreconf -i && ./configure && make && sudo make install
4、安装amqp (注意相关版本)
wget http://pecl.php.net/get/amqp-1.0.0.tgz
tar zxvf amqp-1.0.0.tgz
cd amqp-1.0.0
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config –with-amqp
make && make install