2、在主从服务器分别测试上传下载删除查询文件
在主服务器上传文件:/usr/local/bin/fdfs_upload_file /etc/fdfs/client.conf /www/geebook_client/a.jpg
返回信息:group1/M00/00/00/wKgKnVTv-lqADpl3AAAs_VD7qBc394.jpg
用浏览器访问
用浏览器访问
下载文件:/usr/local/bin/fdfs_download_file /etc/fdfs/client.conf group1/M00/00/00/wKgKnVTv-lqADpl3AAAs_VD7qBc394.jpg
删除文件:/usr/local/bin/fdfs_delete_file /etc/fdfs/client.conf group1/M00/00/00/wKgKnVTv-lqADpl3AAAs_VD7qBc394.jpg
查询服务器 /usr/local/bin/fdfs_monitor /etc/fdfs/client.conf
--------------------------------------------------------------------------------------------------------------------------------------
在主服务器上传文件:/usr/local/bin/fdfs_upload_file /etc/fdfs/client.conf /www/geebook_client/b.jpg
返回信息:group1/M00/00/00/wKgKnlTv-2mAdfNQAAA06ICuy-Q058.jpg
用浏览器访问
用浏览器访问
下载文件:/usr/local/bin/fdfs_download_file /etc/fdfs/client.conf group1/M00/00/00/wKgKnlTv-2mAdfNQAAA06ICuy-Q058.jpg xxx.jpg
删除文件:/usr/local/bin/fdfs_delete_file /etc/fdfs/client.conf group1/M00/00/00/wKgKnlTv-2mAdfNQAAA06ICuy-Q058.jpg
查询服务器 /usr/local/bin/fdfs_monitor /etc/fdfs/client.conf
删除无效的存储服务器,active时,禁止删除 /usr/local/bin/fdfs_monitor /etc/fdfs/client.conf delete group1 10.0.250.103
####浏览器访问存储服务器ip:group1/M00/
------------------------------------------------------------------------------------------------------------
至此,fastDFS文件服务器双机热备实例教程完成
FastDFS在Ubuntu下的安装,PHP客户端