fastdfs添加php扩展_Linux_newbie_rookie的博客-CSDN博客


本站和网页 https://blog.csdn.net/linux_newbie_rookie/article/details/79061886 的作者无关,不对其内容负责。快照谨为网络故障时之索引,不代表被搜索网站的即时页面。

fastdfs添加php扩展_Linux_newbie_rookie的博客-CSDN博客
fastdfs添加php扩展
Linux_newbie_rookie
于 2018-01-15 10:41:49 发布
1669
收藏
分类专栏:
文件系统
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/linux_newbie_rookie/article/details/79061886
版权
文件系统
专栏收录该内容
3 篇文章
0 订阅
订阅专栏
不知道怎么安装fastdfs的可以参考http://blog.csdn.net/linux_newbie_rookie/article/details/78974824
在安装完fastdfs文件系统之后,
1. 切换到fastdfs的源码解压目录:
/run/fast/fastdfs-5.05/php_client
1) 先初始化: /usr/bin/phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
2) 编译文件  ./configure --with-php-config=/usr/bin/php-config
...
Build complete.
Don`t forget to run 'make test'.
3) 安装
make && make install
Installing shared extensions:     /usr/lib/php5/20100525/
2. 在php的配置文件添加fastdfs_client.ini信息
 cat /run/fast/fastdfs-5/php_client/fastdfs_client.ini >> /etc/php.ini
3. 重新启动nginx以及php-fpm,fdfs_trackerd 和 fdfs_storaged
可以使用php -m 进行查看fastdfs_client 扩展是否安装上
4. 测试:
cp /run/fast/fastdfs-5/php_client/fastdfs_test.php /run/fast/storaged/
然后在浏览器输入:http://192.168.1.192:8888/fastdfs_test.php
出现:5.05 fastdfs_tracker_make_all_connections result: 1 array(1) { ["group1"]=> array(12) { ["total_space"]=> int(919) ["free_space"]=> int(786) ["trunk_free_space"]=> int(0) 
["server_count"]=> int(1) ["active_count"]=> int(1) ["storage_port"]=> int(23000) ["storage_http_port"]=> int(8888) ["store_path_count"]=> int(1) 
及正常。
遇到的坑,在配置php扩展之后,一直访问不了php界面。
虽然在一台机器启动两个nginx,但是都可以使用同一个php-fpm,只需要在nginx的配置文件指定php的9000端口即可。
建议源码安装之后的nginx配置文件一般不要修改,直接自己创建一个目录存放所有的.conf 的文件(前提需要在nginx.conf文件里面添加一个include)。
如: include /run/fast/nginx/conf/vhost/*;
下面是自己当时的一个配置文件
cat fastdfs.conf
server
      {
              listen  8888;
              client_header_buffer_size 16k;
              large_client_header_buffers 4 32k;
              client_max_body_size 300m;
              client_body_buffer_size 128k;
         location /group1/M00 {                                                                                                                       
               root /run/fast/storag;                                                                                                                 
               ngx_fastdfs_module;                                                                                                                    
         } 
         location / {
             root               /run/fast/storage;
             index               index.php;
             proxy_connect_timeout 3000;
             proxy_send_timeout 3000;
#            proxy_set_header Connection "";
             proxy_read_timeout 3000;
             proxy_buffer_size 4k;
             proxy_buffers 4 32k;
             proxy_busy_buffers_size 64k;
             if (!-e $request_filename) {
               rewrite ^/index.php(.*)$ /index.php?s=$1 last;
               rewrite ^(.*)$ /index.php?s=$1 last;
               break;}
                }
              location ~ \.php$ {
                        root           /run/fast/storage;
                        fastcgi_pass   127.0.0.1:9000;
                        fastcgi_index  spp.php;
                        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                        include        fastcgi_params;
                               }
      }
Linux_newbie_rookie
关注
关注
点赞
收藏
打赏
评论
fastdfs添加php扩展
不知道怎么安装fastdfs的可以参考http://blog.csdn.net/linux_newbie_rookie/article/details/78974824在安装完fastdfs文件系统之后,1. 切换到fastdfs的源码解压目录:/run/fast/fastdfs-5.05/php_client1) 先初始化: /usr/bin/phpizeConfig
复制链接
扫一扫
专栏目录
FastDFS环境配置及php FastDFS扩展安装
ssoul_liu的博客
04-04
1万+
FastDFS环境配置及php FastDFS扩展安装FastDFS是一个开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决了大容量存储和负载均衡的问题。特别适合以文件为载体的在线服务,如相册网站、视频网站等等。详细介绍请自行百度(www.baidu.com)。
接下来我们就来具体配置和安装,我的服务器是LNMP
在此之前首先要确定LA
fastDFS php封装
最新发布
weixin_46742102的博客
12-10
57
fastDFS php封装
参与评论
您还未登录,请先
登录
后发表或查看评论
php安装FastDFS客户端拓展
youlinhuanyan的博客
01-19
465
php安装FastDFS客户端拓展
CentOS下的php环境安装FastDFS客户端比较麻烦,这里为各位小伙伴提供一篇参考
使用环境
CentOS 7
PHP 7.3
FastDFS 5.08
下载FastDFS相关资源依赖
打开github源码库
下载地址
https://github.com/happyfish100/libfastcommon
下载libfastcommon-master.zip到服务,解压zip包
unzip libfastcommon-master.zip
编辑
cd li
PHP安装fastDFS扩展
良玉的博客
12-04
3444
1、下载FastDFS源程序,最好与FastDFS服务器版本匹配,这里我下载了FastDFS_v4.03.tar.gz版本,放在/usr/local/src目录下。
2、服务器的LNMP环境以及OK了,PHP安装目录为/usr/local/php
3、步骤
view source
1.#
tar zxvf FastDFS_v4.03.tar.gz
fastDFS中使用php上传文件 -- http上传与下载图片
热门推荐
CleverCode的博客
08-27
1万+
CleverCode研究完fastDFS后,尝试着使用php上传文件到fastdfs。
1fastDFS安装
fastdfs分布式架构配置参考:http://blog.csdn.net/clevercode/article/details/52267080。
fastdfs使用nginx配置参考:http://blog.csdn.net/clevercode/article/det...
php fastdfs扩展安装
weixin_30446613的博客
11-03
91
[root@snstest ~]#tar zxvf FastDFS_v3.06.tar.gz[root@snstest ~]#cd FastDFS[root@ FastDFS ~]#./make.sh[root@ FastDFS ~]#./make.sh install[root@ FastDFS ~]#Cd client[root@ client ~]#make; make install[ro...
FastDFS安装接配置:PHP扩展
02-10
780
FastDFS
安装准备yum -y groupinstall 'Development Tools'
yum -y install wget
安装libfastcommoncd ~
git clone https://github.com/happyfish100/libfastcommon.git
cd libfastcommon/
./make.sh
./make.sh install
安装f
Fastdfs php扩展访问
weixin_30319153的博客
10-11
53
一.安装FastDFS client php extension compiled under PHP 5.4 and PHP 7.0
1.安装php扩展,进入fastdfs源码文件夹中的 php_client 文件夹中
运行以下四个命令
phpize
./configure
make
make install
2.将生成的fastdfs_client.so ...
Python(py3fdfs)上传到fastdfs配置store_path问题
二月十六的博客
07-21
1164
使用py3fdfs上传图片到fastdfs的时候,发现一个问题,没有设置store_path的地方,后来在读源代码的时候,发现
这里是有store_path_index这个值,只是我没有找到怎么在外边更好的设置这个值(原谅我对Python、py3fdf不熟悉……),我就用了一个比较笨的方法实现了设置store_path_index这个值。
外部调用上传的代码是:
ret_upload = client.upload_by_filename('C:/Us...
fast php配置,FastDFS的php和nginx模块配置
weixin_29483277的博客
03-11
61
一、FastDFS和php整合1、安装php#安装依赖包yum-yinstallgccgcc-c++autoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglibcglibc-develglib2glib2-d...
FastDFS基于php的API
function的专栏
01-19
4871
注解:
Filename是storage返回的remote_filename
file_id是including group name and filename
group是storage的组名
timestamp是时间戳
local_filename本地文件名
file_ext_name文件扩展名
meta_list详细文件属性列表
tracker_server Fast的服务器
Linux 下安装FastDFS v5.08 的php扩展
weixin_34260991的博客
01-17
57
php扩展也需要依赖于FastDFS一些库文件,所以请先安装FastDFS,具体请看我之前的文章。
一、安装目录
php安装目录
/data/nmp/php
FastDFS源码目录
/data/wwwroot/FastDFS
二、安装php扩展
1、进入php_client目录
> cd /data/wwwroot/FastDFS/php_c...
fastdfs php client,centos 5.7_64位下FastDFS_client的配置和PHP测试
weixin_35426022的博客
03-10
79
client server5 192.168.10.229client server 先安装LNMP环境cd /root/soft/FastDFS/php_client/usr/local/php-5.2.17/bin/phpize./configure --with-php-config=/usr/local/php-5.2.17/bin/php-configmakemake insta...
php使用fastdfs,PHP使用FastDFS上传下载文件
weixin_39620334的博客
03-16
216
准备事项完成nginx相关配置,可通过url访问上传后文件PHP FastDFS扩展安装#进入fastdfs安装包目录下php_client文件夹cd /fastdfs/php_client#编译安装fastdfs_client扩展phpize #对应要编译版本的phpize./configure --with-php-config=/user/local/php/bin/php-config ...
FastDFS的php和nginx模块配置
weixin_33841722的博客
10-05
97
一、FastDFS和php整合1、安装php#安装依赖包
yum-yinstallgccgcc-c++autoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglibcglibc-develg...
fastdfs机制和配置详解
yongyong169的博客
11-30
1万+
FastDFS安装
安装请参考这里。
FastDFS概述
通过Google来搜FastDFS,会看到前四个结果分别是googlecode和sourceforge上托管的源码。很奇怪为什么作者不在Github上托管一份,这2个更新和管理代码太不方便,更不谈googlecode被墙了。
第五个结果是它的论坛,很多资料和使用经验应该都会出自这里。哎,写个官方使用文档是他妈有多难?
后面2篇文章...
实战fastdfs安装以及php扩展安装
企鹅漫步
10-28
1152
1.tracker1:192.168.0.1
2.tracker2:192.168.0.2
strorage
192.168.0.1 192.168.0.2
1.安装libevent网络库
wget https://github.com/downloads/libevent/libevent/libevent-2.0.19-stable.tar.gz
# ./configure –
php 中FastDFS开启和调用使用
一玄清泉的专栏
05-20
3000
php 中FastDFS开启和调用使用
1 php
3 if (!class_exists('FastDFS', false)) {
4 define('FDFS_PROTO_PKG_LEN_SIZE', 8);
5 define('FDFS_PROTO_CMD_ACTIVE_TEST', 111);
6 define('FDFS
FastDFS 在同一个storage server中增加存储目录
不务正业的野猴子
10-03
5390
新建存储目录
mkdir /opt/fastdfs_storage_data1
修改配置文件storage.conf
store_path_count=2 ##将原来的1改为2
store_path1=/opt/fastdfs_storage_data1 ##新增
修改配置文件mod_storage.conf
store_path_count=2 ##将原来的1改为2
store_p...
centos 5.7_64位下FastDFS_client的配置和PHP测试
weixin_33701294的博客
03-22
76
centos 5.7_64位下安装FastDFS_v3.06分布式文件系统
http://ppabc.blog.51cto.com/203980/813755
client server5 192.168.10.229
client server 先安装LNMP环境
cd /root/soft/FastDFS/php_client
/usr/local/php-5.2.17/bi...
“相关推荐”对你有帮助么?
非常没帮助
没帮助
一般
有帮助
非常有帮助
提交
©️2022 CSDN
皮肤主题:大白
设计师:CSDN官方博客
返回首页
Linux_newbie_rookie
CSDN认证博客专家
CSDN认证企业博客
码龄6年
暂无认证
56
原创
3万+
周排名
1万+
总排名
7万+
访问
等级
1137
积分
粉丝
获赞
评论
43
收藏
私信
关注
热门文章
解决ntp的错误 no server suitable for synchronization found
18522
mysql的增量备份与全量备份
4987
fastdfs的一些错误总结
4619
nginx做地域限制
3917
openssl版本升级
3750
分类专栏
Go
1篇
中间件
17篇
Service Mesh
3篇
kubernetes
1篇
监控
6篇
linux
14篇
命令用法
1篇
mysql
7篇
python
文件系统
3篇
版本库
3篇
脚本
3篇
最新评论
使用cronjob备份etcd
programmer_ada:
推荐 云原生入门 技能树:https://edu.csdn.net/skill/cloud_native?utm_source=AI_act_cloud_native
nginx做地域限制
m0_71984990:
解决ntp的错误 no server suitable for synchronization found
a15103805294:
怎么把notrust去掉。
lnmp一键部署安装脚本
csdn861:
对linux 系统版本有要求吗
redis集群安装部署
Linux_newbie_rookie
回复
csdn861:
已经很详细了,你说的不全是哪里不全
您愿意向朋友推荐“博客详情页”吗?
强烈不推荐
不推荐
一般般
推荐
强烈推荐
提交
最新文章
Kafka生产者以及确保消息不丢失
Kafka消费者组消费进度监控
Kafka的认证
2022年13篇
2019年1篇
2018年21篇
2017年27篇
目录
目录
分类专栏
Go
1篇
中间件
17篇
Service Mesh
3篇
kubernetes
1篇
监控
6篇
linux
14篇
命令用法
1篇
mysql
7篇
python
文件系统
3篇
版本库
3篇
脚本
3篇
目录
评论
被折叠的 条评论
为什么被折叠?
到【灌水乐园】发言
查看更多评论
打赏作者
Linux_newbie_rookie
你的鼓励将是我创作的最大动力
¥2
¥4
¥6
¥10
¥20
输入1-500的整数
余额支付
(余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付
您的余额不足,请更换扫码支付或充值
打赏作者
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额
抵扣说明:
1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。 2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。
余额充值