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









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 入门 (阅读:14853)
- 图片动态局部毛玻璃模糊效果的实现 (阅读:13653)
- Zookeeper工作原理 (阅读:10623)
- 淘宝图片存储架构 (阅读:10006)
- GFS, HDFS, Blob File System架构对比 (阅读:9493)
- Zookeeper研究和应用 (阅读:8631)
- 分布式日志系统scribe使用手记 (阅读:8150)
- 一致性哈希算法及其在分布式系统中的应用 (阅读:8050)
- 分布式哈希和一致性哈希 (阅读:7793)
- 解决IE6从Nginx服务器下载图片不Cache的Bug (阅读:7231)
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
扫一扫订阅我的微信号:IT技术博客大学习
<< 前一篇:如果用户在5分钟内重复上线,就给他发警告,问如何设计?
后一篇:Apache + Jetty 架设 CAS 单点登录 >>
文章信息
- 作者:张宴 来源: 回忆未来
- 标签: Gearman 分布式 图片
- 发布时间:2009-11-10 22:58:50
建议继续学习
近3天十大热文
-
[73] 使用exp/imp 导入11g数据到9i
-
[63] Java开发岗位面试题归类汇总
-
[50] 如何拿下简短的域名
-
[48] 关于恐惧的自白
-
[47] 流程管理与用户研究
-
[47] find命令的一点注意事项
-
[46] 图书馆的世界纪录
-
[46] Go Reflect 性能
-
[46] WEB系统需要关注的一些点
-
[45] IOS安全–浅谈关于IOS加固的几种方法