2009年10月28日,在金山逍遥技术支持部内部分享会上,介绍了Gearman分布式计算框架与金山逍遥DIPS分布式图片处理平台,以下是PPT图片:

PDF版本下载:

下载文件
附1:Gearman分布式计算框架网址
附2:PHP客户端Gearman扩展安装:
wget
tar zxvf libevent-1.4.12-stable.tar.gz
cd libevent-1.4.12-stable/
./configure --prefix=/usr
make && make install
/sbin/ldconfig
cd ../
wget
tar zxvf gearmand-0.9.tar.gz
cd gearmand-0.9/
./configure
make
make install
/sbin/ldconfig
cd ../
wget
tar zxvf gearman-0.5.0.tgz
cd gearman-0.5.0
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config --with-gearman
make
make install
cd ../
php.ini文件中增加:
extension = "gearman.so"
附2:Gearman调度器安装(JOB Server):
wget
tar zxvf gearmand-0.9.tar.gz
cd gearmand-0.9/
./configure
make
make install
/sbin/ldconfig
cd ../
以守护进程启动:
gearmand -L 192.168.0.1 -p 4730 -u root -d
阅读(639) | 评论(0) | 转发(0) |