brew 这个命令我还真是第⼀次知道。----------------------------------------------
转载请注明: 转载⾃本⽂链接地址:
记录⼀下安装配置的过程,这⾥我都是直接⽤brew来安装,如果没有安装先安装:
1/usr/bin/ruby -e \"$(curl -fsSL )\"
1.⾸先就是安装rabbitmq了,简单,因为rabbitmq是依赖erlang,所以安装中会下载并且安装erlang,下载编译时间可能会有点长,稍安勿躁:
1brew update2brew install rabbitmq1git clone
2mkdir build && cd build
3cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..4cmake --build . --target install
3.接下来就是安装php amqp的扩展了:你可以源码编译安装
1wget
2tar zxvf amqp-1.0.0.tgz3cd amqp-1.0.0
4/usr/local/php/bin/phpize
5./configure –-with-php-config=/usr/local/php/bin/php-config -–with-amqp6make && make install
当然也可以直接⽤PECL来装, 如果还没有安装pear的话:
1wget
2php -d detect_unicode=0 go-pear.phar
然后直接⽤pecl来安装扩展
1~/pear/bin/pecl install amqp
最后将‘extension=amqp.so’加⼊php.ini,重启apache,再查看下:
1php -i | grep amqp
已经装好了!
因篇幅问题不能全部显示,请点此查看更多更全内容