fastDFS-php 扩展安装

FastDFS php扩展安装

  • 安装环境及其配置目录
    		centos 6.2 x64
    		PHP Version 5.3.8
    		PHP installpath : /usr/local/php
    		FastDFS_v3.08.tar.gz
    	
  • 为方便查找目录,设置变量
    		# vi .bashrc
    		alias  worksrc='cd /usr/local/src'
    
    		配置生效
    		# source .bashrc
    • 安装扩展
      				wget http://fastdfs.googlecode.com/files/FastDFS_v3.08.tar.gz
      			tar -zxvf FastDFS_v3.08.tar.gz
      			cd FastDFS
      			./make.sh
      			./make.sh install
      			cd client
      			make; make install
      			cd ../php_client/
      			/usr/local/php/bin/phpize #php路径一定要对
      			./configure --with-php-config=/usr/local/php/bin/php-config
      			make && make install
      
      			#将fastdfs的初始化数据导入php中
      			cat /usr/local/src/FastDFS/php_client/fastdfs_client.ini >> /usr/local/php/etc/php.ini
      
      			service php-fpmd restart #重启php
      		
      		cd client
      		make; make install
      		如以上不安装,直接进php-config目录进行编译安装,会报如下错误
      		make: *** [fastdfs_client.lo] Error 1

      另外我们可以参考REAME,里面介绍的也相当的详细

www.it4test.com
200-120-exam-questions
350-001-exam-questions
350-018-exam-questions
350-030-exam-questions
640-461-exam-questions
648-266-exam-questions
648-244-exam-questions
648-232-exam-questions
646-580-exam-questions
646-048-exam-questions
070-465
070-466
070-467
070-480
070-483
220-301
220-303
220-603
220-702
220-902

200-120
210-260
210-260-practice-test
200-310-practice-test
200-310
810-403
300-320
300-320-practice-test
400-101
400-101-practice-test
70-533-practice-test
MB2-707-practice-test
210-060
210-060-practice-test
400-201-practice-test
350-018-practice-test
70-461
www.eci.org.il
300-206-practice-test
352-001-practice-test
PR000041-practice-test
300-208
300-208-vce-dumps
itilfnd
AX0-100
220-802
70-494
700-501-practice-test
A2070-581

扩展:
fastDFS-php 扩展 所对应的 fdfs类

相关文章
  1. 对Web静态资源缓存自动更新的思考与实践的总结
  2. 单机多git帐号的访问详解案例
  3. CentOS 6.5安装部署SVN 1.8.13
  4. php-redis扩展
  5. Redis安装部署
  6. gearman应用-分布式图库系统设计
本站版权
1、本站所有主题由该文章作者发表,该文章作者与尘埃享有文章相关版权
2、其他单位或个人使用、转载或引用本文时必须同时征得该文章作者和尘埃的同意
3、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
4、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
5、原文链接:
二维码
Posted in Cache/File存储, extension-php, FastDFS分布式文件系统, FastDFS类, lnmp源码安装, php, php扩展, 编程语言
Comments are closed.