江新宇
摘要: 由于网站使用nfs共享方式保存用户上传的图片,附件等资料,然后通过apache下载的方式供用户访问,在网站架构初期,使用这种简单的方式实现了静态资源的读写分离,但随着网站数据量的增加,图片服务器渐渐成为整个网站的短板,缘次催生了使用fastfds的想法,故而先进行一番简单的测试!在开始之前还是先来看看fastfds的介绍信息:FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing a 阅读全文
posted @ 2012-12-05 17:42 新风宇宙-江新宇的博客 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1,如果没有phpize,首先安装php5-devsudo apt-get install php5-dev2,获取最新的redis代码,并且编译安装wgethttp://redis.googlecode.com/files/redis-2.4.15.tar.gztar xzvf redis-2.4.15.tar.gzcd redis-2.4.15makemake install3,安装phpredis,获取最新的版本代码进行编译wget --no-check-certificatehttp://github.com/nicolasff/phpredis/tarball/master-O ph 阅读全文
posted @ 2012-12-05 15:56 新风宇宙-江新宇的博客 阅读(586) 评论(0) 推荐(0) 编辑