利用开源的Gearman框架构建分布式图片处理平台[原创]
浏览:4338次 出处信息









PDF版本下载:

附1:Gearman分布式计算框架网址
http://gearman.org/
附2:PHP客户端Gearman扩展安装:
wget http://www.monkey.org/~provos/libevent-1.4.12-stable.tar.gz
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 http://launchpad.net/gearmand/trunk/0.9/+download/gearmand-0.9.tar.gz
tar zxvf gearmand-0.9.tar.gz
cd gearmand-0.9/
./configure
make
make install
/sbin/ldconfig
cd ../
wget http://pecl.php.net/get/gearman-0.5.0.tgz
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 ../
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 http://launchpad.net/gearmand/trunk/0.9/+download/gearmand-0.9.tar.gz
tar zxvf gearmand-0.9.tar.gz
cd gearmand-0.9/
./configure
make
make install
/sbin/ldconfig
cd ../
wget http://pecl.php.net/get/gearman-0.5.0.tgz
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 http://launchpad.net/gearmand/trunk/0.9/+download/gearmand-0.9.tar.gz
tar zxvf gearmand-0.9.tar.gz
cd gearmand-0.9/
./configure
make
make install
/sbin/ldconfig
cd ../
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
建议继续学习:
- 分布式缓存系统 Memcached 入门 (阅读:14887)
- 图片动态局部毛玻璃模糊效果的实现 (阅读:13722)
- Zookeeper工作原理 (阅读:10664)
- 淘宝图片存储架构 (阅读:10031)
- GFS, HDFS, Blob File System架构对比 (阅读:9520)
- Zookeeper研究和应用 (阅读:8654)
- 分布式日志系统scribe使用手记 (阅读:8195)
- 一致性哈希算法及其在分布式系统中的应用 (阅读:8083)
- 分布式哈希和一致性哈希 (阅读:7827)
- 解决IE6从Nginx服务器下载图片不Cache的Bug (阅读:7280)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
扫一扫订阅我的微信号:IT技术博客大学习
<< 前一篇:如果用户在5分钟内重复上线,就给他发警告,问如何设计?
后一篇:Apache + Jetty 架设 CAS 单点登录 >>
文章信息
- 作者:张宴 来源: 回忆未来
- 标签: Gearman 分布式 图片
- 发布时间:2009-11-10 22:58:50
建议继续学习
近3天十大热文
-
[84] memory prefetch浅析
-
[53] 基本排序算法的PHP实现
-
[52] 深入浅出cassandra 4 数据一致性问
-
[50] 转载:cassandra读写性能原理分析
-
[42] 字符引用和空白字符
-
[42] MySQL半同步存在的问题
-
[40] Inline Form Labels
-
[40] javascript插入样式
-
[38] JS中如何判断字符串类型的数字
-
[38] 获取Dom元素的X/Y坐标