linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料

linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料

ID:32585500

大小:165.38 KB

页数:8页

时间:2019-02-13

上传者:U-991
linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料_第1页
linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料_第2页
linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料_第3页
linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料_第4页
linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料_第5页
资源描述:

《linux_fastdfs安装文档_计算机软件及应用_it计算机_专业资料》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

Linux(Centos6.5)FastDFS分布式文件系统安装文档 版本控制版本日期编制/修订描述审核/日期批准/日期V1.02016-9-12曹健强创建文档 目录1.概述.31.1.文档目的32.步骤.32.1•安装介质32.2•远程连接到虚拟机42.3•上传FastDFS相关安装包到虚拟机42・4•搭建步!1.概述1丄文档目的本文档目的:1)能够在Linux系统卜•熟练搭建FastDFS分布式文件系统;乙步骤2丄安装介质虚拟机:VMware_Workstation操作系统:Centos6.5 22远程连接到虚拟机连接的T具很多,这里我们采用Notepad++插件,方便好用,打开Notepad++在插件里找到NppFTP工具,点击打开,所下图所示[NppFTP一DisconnectwdProfiles:ProfilesettingsConnectionAuthenticationTransfersFTPMisc.CacheAddnewRedameCopy192.168.138.130Port:22Username:rootPassword:••••Timeout(seconds):0Initialremotedirectory:Connectiontype:FlAskforpasswordCloseDelete2.3•上传FastDFS相关安装包到虚拟机远程连接成功后,鼠标右键点击选择Uploadotherfilehere选项,将FastDFS相关安装包上传到虚拟机,如下图所示 名称倉fastdfs-5.O5.tar.gz倉fastdfs-nginx-module_vl-16.tar.gz這libfastcomm.0.7.tar.gzNppFTP-Connectedtocentos6.5roott>.cachet>.configt>.dbust>.gconf..gconfd..gnome2..gnoteI>«gnupgl>・gstreamer-0.10t>.gvfs>.local・nautilus>.pulse0.sshDesktopDocumentsDownloads>MusicPicturesCreatenewdirectoryCreatenewfileRenameDirectoryDeletedirectoryUploadcurrentfilehereUploadotherfilehere...Refresh2.4■搭建步骤第一步:把fastDFS都上传到linux系统。第二步:安装FastDFSZ前,先安装libevent工具包。yum・yinstalllibevent第三步:安装libfastcommonVl.0.7工具包。1、解压缩2、进入解压后目录,执行./make.sh3>./make.shinstall4、把/usr/lib6VIibfastcommon.so文件向/usr/lib/下复制一份(针对32位系统)第四步:安装Tracker服务。 1、解压缩2、./make.sh3、./make.shinstall安装后在/usr/bin/冃录下有以fdfs开头的文件都是编译出来的。配置文件都放到/etc/fdfs文件夹4、JE/root/FastDFS/conf目录下的所有的配置文件都复制到/etc/fdfs下。5、配置trackerJJIx务。修改/etc/fdfs/tracker.conf文件。在homeb创建fastdfs文件夹、然后在fastdfsb'创建tracker、storageclient文件夹#networktimeout"inseconds#defaultvalueis30snetwork_timeout=60改成自己的路径,路径必须存在#thebasepathtost^redataandlogfilesbase_path=/home/yuq-ing/fastdfs6、卅动tracker。/usr/bin/fdfs_trackerd/etc/fdfs/tracker.conf重启使用命令:/usr/bin/fdfs_trackerd/etc/fdfs/tracker.confrestart第五步:安装storage服务。1、如果是在不同的服务器安装,第四步的1~4需要重新执行。2、配置storage服务。修改/root/FastDFS/conf/storage.conf文件yJIJF2U■■■JJ■VMITTT7JJVZ.■7stat_report_interval=60storage服务日志存放路径,路径必须存在2ase_path=/home/HJEiDE/^astd'f=s#thebasepathtostoredat^^and1ogfiles#maxconcurrentconnectionstheserversupported#path(diskormountpoint)count,defaultstore_path_count=l#store_path#,based0,ifstore_pathOnotuqing#thepathsmustbeexistT^stdfs2图片的保存路径,路径必须存在storeDathQ=/home/MjMMft>|/fastdfH#store_pathl=/home/suoair_count_per_patn=zbb#tracker_servercanocurmorethanonce?andtracker_s#f,host:portn,hostcanbehostnameoripaddresstracker_server=192.168.25.133fl22122+十1指走tracke「服务器的ip及端口口#sHanda厂d"locIrx/q"!__assvslcci.__ursr"insans"i.__za"llir 3、启动storage服务。/usr/bin/fdfs_storaged/etc/fdfs/storage.conf/usr/bin/fdfs_storaged/etc/fdfs/storage.confrestart(重启)第六步:测试服务。修改配置文件/etc/fdfs/client.conf#defaultvalueis30snetwork_t-imeout=60客户端日志文件保存路径#thebasepathtostorelogfilesbase_path=/home/fastdfs/client#thebasepathtostorelogfilesbase_path=/home/fastdfs/client#tracker_servercanocurmorethanonce,andtracker_serverformati#Hhost:port11,hostcanbehostnameoripaddresstracker_server=192.168.25.133:22122指定tracker的地址十"1ccauuv/ulcc“auaVnuanuVV1Vu・2、测试、进入cd/etc/fdfs/测试/usr/bin/fdfs_test/etc/fdfs/client.confuploadanti-steaLjpg查看图片是否上传成功[root@localhost~]#cd/home/fastdfs/[root@localhostfastdfs]#cdstorage/dataX)0X)0/第七步:搭建nginx提供http服务。可以使用官方提供的nginx插件。要使用nginx插件需要重新编译。fastdfs-nginx-module_vl.16.tar.gz1、解压插件压缩包2、修改/root/fastdfs-nginx-module/src/config文件,把其中的local去掉。ngx_aaaon_name=ngx_http_fastdfs_moduleHTTP_MODULES=,I$HTTP_MODULESngx_http_fastdfs_moduleHNGX_ADDON_SRCS="$NGX_ADDON_SRCS$ngx_addon_cHr/ngx_http_fastdfs_module.cHCORE_INCS="$CORE_INCS/usnclude/fastdfs/usr/jEHD/include/fastcommon/11CORE_LIBS="$CORE_LIBS-L/usr/lBRgtl/11b-1fastcommon-Ifdfsclient"CFLAGS=n$CFLAGS-D_F工LE_OFFSET_BTTS=64-DFDFS_OUTPUT_CHUNK_SIZE=1256*10241-DFDFS_MOD_CONF_FILENAME=1,,/etc/fdfs/mod_fastdfs•conf”'"3、进入nginx解压目录、对nginx重新config./configure一prefix二/usr/local/nginx-pid-path=/var/run/nginx/nginx.pid-lock-path=/var/lock/nginx」ock-error-log-path=/var/log/nginx/error.log-http-log-path=/var/log/nginx/access」og-with-http_gzip_static_module-http-client-body-temp-path=/var/temp/nginx/client-http-proxy-temp-path=/var/temp/nginx/proxy-http-fastcgi-temp-path二/var/temp/nginx/fastcgi-http-uwsgi-temp-path=/var/temp/nginx/uwsgi~http-scgi-temp-path=/var/temp/nginx/scgi-add-module=/root/fastdfs-nginx-module/src4、make5、makeinstall 6、把/root/fastdfs-nginx-module/src/mod_fastdfs.conf文件复制到/etc/fdfs目录下。编辑:thanonce,andipaddress.from_trackeristracker_true#thebasepathtostorelogfilesbase_path=/tmp日志存放路径#FastDFStracker_servercanocurmore#Hhost:portH,hostcanbehostnameor#validonlywhen1oad_fdfs_parameters_tracker_server=192.168.25.133:22122实际的tracke「服务器的地址tfe•1surl/urirncludingfalsewhenliketruewh^n口门likevalueisfalsegroup』ame=truetruethegroupname/MOO/OO/OO/xxx${group_name}/M00/00/00/x7、nginx的配置在nginx的配置文件中添加一个Server:8、将libfdfsclient.so拷贝至/usr/lib卜cp/usr/lib64/libfdfsclient.so/usr/lib/(针对32位系统)9、卅动nginx(进入sbin忖录启动)server{listen80;server_name192.168.138.130;}}#store_path#,based0,ifstore_pathOnotexists,it's#thepathsmustbeexist#mustsameasstorage2confstore_pathO=/home/fa?tafs/storage,*—图片路径#store_pathl=/home/yuqing/fastdfsilocation/group1/M00/{#root/home/FastDFS/fdfs_storage/data;ngx_fastdfs_module;

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
关闭