下载最新版本的 zeromq
tar zxvf zeromq-4.0.3.tar.gz
./configure --prefix=/opt/local/zeromq
make && make install
php扩展需要用gif 在google 下载
wget
tar zxvf git-1.7.10.tar.gz
cd git-1.7.10
./configure
make && make install
yum -y install git
git clone git://github.com/mkoppanen/php-zmq.git
cd php-zmq/
/opt/local/php/bin/phpize
./configure --with-php-config=/opt/local/php/bin/php-config --with-zmq=/opt/local/zeromq/
make && make install
vi php.ini
extension = "zmq.so"
重启php 既可
阅读(2697) | 评论(0) | 转发(0) |