php安装fastdfs扩展的方法:首先下载FastDFS源程序;然后将其放在“/usr/local/src”目录下;最后在“php.ini”配置文件中加载fastdfs即可。
推荐:《PHP视频教程》
PHP安装fastDFS扩展
fastdfs、php_client、fastdfs-nginx-module、nginx、php、各种版本不兼容,如果一直报错无法解决,尝试换版本吧。。。尴尬
1、下载FastDFS源程序,最好与FastDFS服务器版本匹配,这里我下载了FastDFS_v4.03.tar.gz版本,放在/usr/local/src目录下。
2、服务器的LNMP环境以及OK了,PHP安装目录为/usr/local/php
3、步骤
# tar zxvf FastDFS_v4.03.tar.gz # cd FastDFS # ./make.sh # ./make.sh install # cd client # make # make install # cd php_client# /usr/local/php/bin/phpize //执行php的安装目录下的phpize # ./configure --with-php-config=/usr/local/php/bin/php-config # make # make install # cp conf/client.conf /etc/fdfs/ # cd /etc/fdfs/ # vi client.conf,保存 tracker_server=192.168.1.136:22122 //根据环境填写IP地址及端口号在php.ini配置文件中加载fastdfs
# cat fastdfs_client.ini >> /usr/local/php/etc/php.ini4、重启web服务器即可。在php_client已经有扩展函数说明和程序示例
5、验证扩展
执行命令:
# php -m | grep fastdfs看下有木有。
以上就是php如何安装fastdfs扩展的详细内容!
查看更多关于php如何安装fastdfs扩展的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did53845
php如何安装fastdfs扩展
阅读:43次