搭建单机版的FastDFS服务器

上传人:ly****51 文档编号:68317564 上传时间:2022-04-02 格式:DOC 页数:16 大小:197.50KB
返回 下载 相关 举报
搭建单机版的FastDFS服务器_第1页
第1页 / 共16页
搭建单机版的FastDFS服务器_第2页
第2页 / 共16页
搭建单机版的FastDFS服务器_第3页
第3页 / 共16页
亲,该文档总共16页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
.搭建单机版的FastDFS服务器由于FastDFS集群搭建非常复杂,对于初期学习FastDFS来说,搭建个单机版的作为入门更为实际一些。第一步:搭建虚拟环境FastDFS需要在Linux系统上安装,我们一般使用的都是Windows系统,这样就需要有虚拟环境,我这里使用Vmware12创建虚拟机第二步:配置静态IP而且要保证能上网需要提醒的是,由于最小化安装默认是没有vim命令的,因此在配置静态IP时使用vi命令即可。第三步:安装vim命令 之所以安装vim命令是因为在安装它的同时会自动帮我们安装perl,而perl在进行编译安装时是必须要有的。安装vim的命令是:yum install vim-enhanced第四步:安装gcc使用命令:yum install make cmake gcc gcc-c+进行安装即可第五步:上传安装文件到Linux服务器为了便于管理,我们在Linux服务器上新建一个/usr/local/software目录,专门用于存放安装包,如下所示AppleScript 纯文本查看复制代码12rootfastdfs * mkdir /usr/local/softwarerootfastdfs *下面我们把需要用到的安装包都上传到/usr/local/software目录下,我们可以使用XShell和Xftp5相结合来方便的进行上传下载操作。也可以通过安装rzsz命令来进行上传下载操作,安装rzsz的命令是yum install lrzsz,安装完之后,rz表示上传,sz 文件表示下载。上传完之后,如下所示AppleScript 纯文本查看复制代码1234567rootfastdfs software* ll总用量 1248-rw-r-r-. 1 root root 17510 12月 12 00:19 fastdfs-nginx-module_v1.16.tar.gz-rw-r-r-. 1 root root 345400 12月 28 00:20 FastDFS_v5.05.tar.gz-rw-r-r-. 1 root root 102378 12月 28 00:19 libfastmon-master.zip-rw-r-r-. 1 root root 804164 12月 28 01:11 nginx-1.6.2.tar.gzrootfastdfs software*第六步:安装zip和unzip命令由于解压.zip结尾的文件需要用到unzip命令,因此我们需要安装,安装命令是yum install zip unzip第七步:安装libfastmon1、解压AppleScript 纯文本查看复制代码1rootfastdfs software* unzip libfastmon-master.zip -d /usr/local/fast/2、进入目录AppleScript 纯文本查看复制代码0102030405060708091011rootfastdfs software* cd /usr/local/fast/libfastmon-master/rootfastdfs libfastmon-master* ll总用量 28-rw-r-r-. 1 root root 2913 12月 28 2017 HISTORY-rw-r-r-. 1 root root 582 12月 28 2017 INSTALL-rw-r-r-. 1 root root 1342 12月 28 2017 libfastmon.spec-rwxr-xr-x. 1root root 215112月282017make.shdrwxr-xr-x. 2root root 409612月282017php-fastmon-rw-r-r-. 1 root root 617 12月 28 2017 READMEdrwxr-xr-x. 2root root 409612月282017srcrootfastdfs libfastmon-master*3、编译AppleScript 纯文本查看复制代码1rootfastdfs libfastmon-master* ./make.sh4、安装AppleScript 纯文本查看复制代码1rootfastdfs libfastmon-master* ./make.sh install第八步:创建软 FastDFS主程序设置的目录为/usr/local/lib/,所以我们需要创建/ usr/lib64/下的一些核心执行程序的软连接文件。如下所示。AppleScript 纯文本查看复制代码1234rootfastdfs libfastmon-master* ln -s /usr/lib64/libfastmon.so /usr/local/lib/libfastmon.sorootfastdfs libfastmon-master* ln -s /usr/lib64/libfastmon.so /usr/lib/libfastmon.sorootfastdfs libfastmon-master* ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.sorootfastdfs libfastmon-master* ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so第九步:安装FastDFS 1、进入到cd /usr/local/software下,解压FastDFS_v5.05.tar.gz文件 AppleScript 纯文本查看复制代码12345678rootfastdfs fast* cd /usr/local/software/rootfastdfs software* ll总用量 1248-rw-r-r-. 1 root root 17510 12月 29 03:28 fastdfs-nginx-module_v1.16.tar.gz-rw-r-r-. 1 root root 345400 12月 29 03:28 FastDFS_v5.05.tar.gz-rw-r-r-. 1 root root 102378 12月 29 03:28 libfastmon-master.zip-rw-r-r-. 1 root root 804164 12月 29 03:29 nginx-1.6.2.tar.gzrootfastdfs software* tar -zxvf FastDFS_v5.05.tar.gz -C /usr/local/fast/2、编译安装AppleScript 纯文本查看复制代码123rootfastdfs software* cd /usr/local/fast/FastDFS/rootfastdfs FastDFS* ./make.shrootfastdfs FastDFS* ./make.sh install安装完后,服务脚本位置如下AppleScript 纯文本查看复制代码1234rootfastdfs FastDFS* cd /etc/init.d/ & ls | grep fdfsfdfs_storagedfdfs_trackerdrootfastdfs init.d*配置文件位置如下:AppleScript 纯文本查看复制代码1234567rootfastdfs init.d* cd /etc/fdfs/rootfastdfs fdfs* ll总用量 20-rw-r-r-. 1 root root 1461 12月 29 04:10 client.conf.sample-rw-r-r-. 1 root root 7829 12月 29 04:10 storage.conf.sample-rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.samplerootfastdfs fdfs*FastDFS一系列执行脚本如下,可以看到有上传文件脚本、下载文件脚本等等。AppleScript 纯文本查看复制代码01020304050607080910111213141516rootfastdfs fdfs* cd /usr/bin/ & ls | grep fdfsfdfs_appender_testfdfs_appender_test1fdfs_append_filefdfs_crc32fdfs_delete_filefdfs_download_filefdfs_file_infofdfs_monitorfdfs_storagedfdfs_testfdfs_test1fdfs_trackerdfdfs_upload_appenderfdfs_upload_filerootfastdfs bin*3、因为FastDFS服务脚本设置的bin目录为/usr/local/bin/下,但是实际我们安装在了/u sr/bin/下面。所以我们需要修改FastDFS配置文件中的路径,也就是需要修改两个配置文件使用命令vim /etc/init.d/fdfs_storaged进入编辑模式,然后直接输入:,光标会定位到最后一行,在:后输入%s+/usr/local/bin+/usr/bin,如下图所示。输入完之后回车,会提示修改了7处。为了确保所有的/usr/local/bin都被替换了,我们可以再打开文件确认一下。接着修改第二个配置文件,我们使用命令vim /etc/init.d/fdfs_trackerd进入编辑模式,接着按照上面那样输入:%s+/usr/local/bin+/usr/bin 并按回车,同样会提醒我们修改了7处。第十步:配置跟踪器1、进入到/etc/fdfs目录并且复制一份tracker.conf.sample并命名为tracker.conf,如下所示。AppleScript 纯文本查看复制代码12345678rootfastdfs bin* cd /etc/fdfs/rootfastdfs fdfs* ll总用量 20-rw-r-r-. 1 root root 1461 12月 29 04:10 client.conf.sample-rw-r-r-. 1 root root 7829 12月 29 04:10 storage.conf.sample-rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.samplerootfastdfs fdfs* cp tracker.conf.sample tracker.confrootfastdfs fdfs*2、使用命令vim /etc/fdfs/tracker.conf进入编辑模式,然后修改base_path的值为/fastdfs/tracker,如下图所示3、我们在上图配置文件中配置的/fastdfs/tracker目前是不存在的,因此我们需要创建一下该目录AppleScript 纯文本查看复制代码12rootfastdfs fdfs* mkdir -p /fastdfs/trackerrootfastdfs fdfs*4、配置防火墙,放开tracker使用的端口22122,使用命令vim /etc/sysconfig/iptables进入编辑模式,添加一行内容-A INPUT -m state -state NEW -m tcp -p tcp -dport 22122 -j ACCEPT,如下图所示。5、重启防火墙AppleScript 纯文本查看复制代码123456rootfastdfs fdfs* service iptables restartiptables:将链设置为政策 ACCEPT:filter 确定iptables:清除防火墙规则: 确定iptables:正在卸载模块: 确定iptables:应用防火墙规则: 确定rootfastdfs fdfs*6、在启动tracker之前,/fastdfs/tracker目录下是没有任何文件的,如下所示AppleScript 纯文本查看复制代码123rootfastdfs tracker* cd /fastdfs/tracker/ & ll总用量 0rootfastdfs tracker*启动tracker,启动完之后,可以看到这个目录下多了两个目录data和logs。如下所示。AppleScript 纯文本查看复制代码1234567rootfastdfs tracker* /etc/init.d/fdfs_trackerd startStarting FastDFS tracker server:rootfastdfs tracker* cd /fastdfs/tracker/ & ll总用量 8drwxr-xr-x. 2root root 409612月 2905:01datadrwxr-xr-x. 2root root 409612月 2905:01logsrootfastdfs tracker*7、设置开机自启动,在rc.local文件中添加/etc/init.d/fdfs_trackerd start,如下所示AppleScript 纯文本查看复制代码01020304050607080910rootfastdfs tracker* vim /etc/rc.d/rc.local*!/bin/sh* This script will be executed *after* all the other init scripts.* You can put your own initialization stuff in here if you dont* want to do the full Sys V style init stuff.touch /var/lock/subsys/local/etc/init.d/fdfs_trackerd start第十一步:配置FastDFS存储1、进入/etc/fdfs目录,复制一份storage.conf.sample文件并命名为storage.conf,如下所示。AppleScript 纯文本查看复制代码01020304050607080910111213141516rootfastdfs tracker* cd /etc/fdfs/rootfastdfs fdfs* ll总用量 28-rw-r-r-. 1 root root 1461 12月 29 04:10 client.conf.sample-rw-r-r-. 1 root root 7829 12月 29 04:10 storage.conf.sample-rw-r-r-. 1 root root 7098 12月 29 04:45 tracker.conf-rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.samplerootfastdfs fdfs* cp storage.conf.sample storage.confrootfastdfs fdfs* ll总用量 36-rw-r-r-. 1 root root 1461 12月 29 04:10 client.conf.sample-rw-r-r-. 1 root root 7829 12月 29 05:07 storage.conf-rw-r-r-. 1 root root 7829 12月 29 04:10 storage.conf.sample-rw-r-r-. 1 root root 7098 12月 29 04:45 tracker.conf-rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.samplerootfastdfs fdfs*2、修改storage.conf文件 ,我们使用命令vim /etc/fdfs/storage.conf进入编辑模式,对以下四项进行修改,192.168.156.13是我的虚拟机的IP,大家根据自己虚拟机的IP自行设置。AppleScript 纯文本查看复制代码1234base_path=/fastdfs/storagestore_path0=/fastdfs/storagetracker_server=192.168.156.13:22122http.server_port=88883、创建存储目录,如下所示。AppleScript 纯文本查看复制代码12rootfastdfs fdfs* mkdir -p /fastdfs/storagerootfastdfs fdfs*4、配置防火墙,允许外界访问storage的默认端口23000,如下所示。AppleScript 纯文本查看复制代码0102030405060708091011121314151617rootfastdfs fdfs* vim /etc/sysconfig/iptables* Firewall configuration written by system-config-firewall* Manual customization of this file is not remended.*filter:INPUT ACCEPT 0:0:FORWARD ACCEPT 0:0:OUTPUT ACCEPT 0:0-A INPUT -m state-state ESTABLISHED,RELATED -j ACCEPT-A INPUT -p icmp -j ACCEPT-A INPUT -i lo -j ACCEPT-A INPUT -m state-state NEW -m tcp -p tcp -dport 22 -j ACCEPT-A INPUT -m state-state NEW -m tcp -p tcp -dport 22122 -j ACCEPT-A INPUT -m state-state NEW -m tcp -p tcp -dport 23000 -j ACCEPT-A INPUT -j REJECT -reject-with icmp-host-prohibited-A FORWARD -j REJECT -reject-with icmp-host-prohibitedMIT添加完之后,重启防火墙,如下所示。AppleScript 纯文本查看复制代码123456rootfastdfs fdfs* service iptables restartiptables:将链设置为政策 ACCEPT:filter 确定iptables:清除防火墙规则: 确定iptables:正在卸载模块: 确定iptables:应用防火墙规则: 确定rootfastdfs fdfs*5、在启动storage之前,/fastdbf/storage目录下是没有任何文件的AppleScript 纯文本查看复制代码123rootfastdfs fdfs* cd /fastdfs/storage/ & ll总用量 0rootfastdfs storage*启动storage,启动后再看/fastdfs/storage目录,可以看到多了data和logs。AppleScript 纯文本查看复制代码1234567rootfastdfs storage* /etc/init.d/fdfs_storaged startStarting FastDFS storage server:rootfastdfs storage* cd /fastdfs/storage/ & ll总用量 8drwxr-xr-x. 68root root 409612月 2905:21datadrwxr-xr-x.2root root 409612月 2905:20logsrootfastdfs storage*6、查看FastDFS tracker和storage 是否启动成功,当看到如下所示信息时说明都启动成功了。AppleScript 纯文本查看复制代码12345rootfastdfs storage* ps -ef | grep fdfsroot21241005:0100:00:00/usr/bin/fdfs_trackerd /etc/fdfs/tracker.confroot22281005:2100:00:00/usr/bin/fdfs_storaged /etc/fdfs/storage.confroot22381360005:22pts/000:00:00grep fdfsrootfastdfs storage*7、我们进入到 /fastdfs/storage/data/目录下,可以看到两级共256*256个目录,每级都是从00到FF,如下只是列出了第一级的目录,点进去每个目录都还有00到FF共256个目录。AppleScript 纯文本查看复制代码0102030405060708091011rootfastdfs storage* cd /fastdfs/storage/data/ & ls0009121B242D363F48515A636C757E879099A2AB B4BD C6CF D8E1EA F3FC010A131C252E374049525B646D767F88919A A3AC B5BE C7D0D9E2EB F4FD020B141D262F38414A535C656E778089929B A4AD B6BF C8D1DA E3EC F5fdfs_storaged.pid030C151E273039424B545D666F78818A939C A5AE B7C0C9D2DB E4ED F6FE040D161F28313A434C555E677079828B949D A6AF B8C1CA D3DC E5EE F7FF050E172029323B444D565F68717A838C959E A7B0B9C2CB D4DD E6EF F8storage_stat.dat060F18212A333C454E576069727B848D969F A8B1BA C3CC D5DE E7F0F9sync071019222B343D464F58616A737C858E97A0A9B2BB C4CD D6DF E8F1FA08111A232C353E475059626B747D868F98A1AA B3BC C5CE D7E0E9F2FBrootfastdfs data*8、设置storage开机自启动,添加一行/etc/init.d/fdfs_storaged start,如下所示。AppleScript 纯文本查看复制代码0102030405060708091011rootfastdfs data* vim /etc/rc.local*!/bin/sh* This script will be executed *after* all the other init scripts.* You can put your own initialization stuff in here if you dont* want to do the full Sys V style init stuff.touch /var/lock/subsys/local/etc/init.d/fdfs_trackerd start/etc/init.d/fdfs_storaged start第十二步:测试图片上传1、进入到/etc/fdfs目录下并复制一份client.conf.sample并更名为client.conf,如下所示。AppleScript 纯文本查看复制代码010203040506070809101112131415161718rootfastdfs data* cd /etc/fdfsrootfastdfs fdfs* ll总用量 36-rw-r-r-. 1 root root 1461 12月 29 04:10 client.conf.sample-rw-r-r-. 1 root root 7820 12月 29 05:12 storage.conf-rw-r-r-. 1 root root 7829 12月 29 04:10 storage.conf.sample-rw-r-r-. 1 root root 7098 12月 29 04:45 tracker.conf-rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.samplerootfastdfs fdfs* cp client.conf.sample client.confrootfastdfs fdfs* ll总用量 40-rw-r-r-. 1 root root 1461 12月 29 05:40 client.conf-rw-r-r-. 1 root root 146112月 29 04:10 client.conf.sample-rw-r-r-. 1 root root 7820 12月 29 05:12 storage.conf-rw-r-r-. 1 root root 7829 12月 29 04:10 storage.conf.sample-rw-r-r-. 1 root root 7098 12月 29 04:45 tracker.conf-rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.samplerootfastdfs fdfs*2、使用命令vim /etc/fdfs/client.conf进入编辑模式并修改如下两项内容,如下所示。AppleScript 纯文本查看复制代码12base_path=/fastdfs/trackertracker_server=192.168.156.13:221223、我们找到命令的脚本位置,并且使用命令,进行文件的上传。AppleScript 纯文本查看复制代码01020304050607080910111213141516rootfastdfs bin* cd /usr/bin/ & ls | grep fdfsfdfs_appender_testfdfs_appender_test1fdfs_append_filefdfs_crc32fdfs_delete_filefdfs_download_filefdfs_file_infofdfs_monitorfdfs_storagedfdfs_testfdfs_test1fdfs_trackerdfdfs_upload_appenderfdfs_upload_filerootfastdfs bin*下面使用fdfs_upload_file脚本进行文件上传操作,如下所示。可以看到已经上传成功了,返回的是图片的保存位置:group1/M00/00/00/wKicDVjr_ayAE4VVAAHk-VzqZ6w020.jpgAppleScript 纯文本查看复制代码123rootfastdfs bin* /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /usr/local/software/3.jpggroup1/M00/00/00/wKicDVjr_ayAE4VVAAHk-VzqZ6w020.jpgrootfastdfs bin*第十三步:FastDFS与nginx相结合1、先安装nginx,大家可以参考2、安装fastdfs-nginxmodule_v1.16.tar.gz(fast与nginx相结合的模块安装包), 进入 /usr/local/software目录并解压,如下所示。AppleScript 纯文本查看复制代码010203040506070809101112rootfastdfs nginx-1.6.2* cd /usr/local/software/rootfastdfs software* tar -zxvf fastdfs-nginx-module_v1.16.tar.gz -C /usr/local/fast/fastdfs-nginx-module/fastdfs-nginx-module/src/fastdfs-nginx-module/src/ngx_http_fastdfs_module.cfastdfs-nginx-module/src/mod_fastdfs.conffastdfs-nginx-module/src/configfastdfs-nginx-module/src/mon.hfastdfs-nginx-module/src/mon.cfastdfs-nginx-module/INSTALLfastdfs-nginx-module/HISTORYrootfastdfs software*3、进入到/usr/local/fast目录下可以看到解压的fastdfs-nginx-module目录,然后进入到fastdfs-nginx-module/src/目录下,可以看到config文件。AppleScript 纯文本查看复制代码010203040506070809101112131415rootfastdfs software* cd /usr/local/fast/rootfastdfs fast* ll总用量 12drwxr-xr-x. 108980users 409612月 2904:10FastDFSdrwxrwxr-x.3500500409612月 292017fastdfs-nginx-moduledrwxr-xr-x.4root root409612月 2903:30libfastmon-masterrootfastdfs fast* cd fastdfs-nginx-module/src/rootfastdfs src* ll总用量 76-rw-rw-r-. 1 500 500 33207 8月 30 2013 mon.c-rw-rw-r-. 1 500 500 3479 1月 3 2012 mon.h-rw-rw-r-. 1 500 500 447 11月 4 2010 config-rw-rw-r-. 1 500 500 3679 3月 30 2013 mod_fastdfs.conf-rw-rw-r-. 1 500 500 28542 5月 4 2014 ngx_http_fastdfs_module.crootfastdfs src*修改该conf文件,我们把文件的第四行配置中的/usr/local/include都改为/usr/include,共两处。4、fastdfs与nginx进行结合,由于我们刚才安装过nginx了,因此在/usr/local目录下已经生成了一个nginx目录了,如下图所示。为了将nginx与fastdfs相结合,我们先把这个nginx目录删除掉,如下图所示,可以看到已经没有nginx目录了。进入到nginx-1.6.2/目录下并执行配置和编译安装,如下所示。AppleScript 纯文本查看复制代码123rootfastdfs local* cd nginx-1.6.2/rootfastdfs nginx-1.6.2* ./configure -add-module=/usr/local/fast/fastdfs-nginx-module/src/rootfastdfs nginx-1.6.2* make & make install复制fastdfs-nginx-module中的配置文件,到/etc/fdfs目录中,如下所示AppleScript 纯文本查看复制代码01020304050607080910rootfastdfs fdfs* cd /usr/local/fast/fastdfs-nginx-module/src/rootfastdfs src* ll总用量 76-rw-rw-r-. 1 500 500 33207 8月 30 2013 mon.c-rw-rw-r-. 1 500 500 3479 1月 3 2012 mon.h-rw-rw-r-. 1 500 500 435 4月 11 06:09 config-rw-rw-r-. 1 500 500 3679 3月 30 2013 mod_fastdfs.conf-rw-rw-r-. 1 500 500 28542 5月 4 2014 ngx_http_fastdfs_module.crootfastdfs src* cp /usr/local/fast/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs/rootfastdfs src*我们到 /etc/fdfs/ 目录下,修改我们刚copy过来的mod_fastdfs.conf 文件,需要修改的项如下,其中第一项是超时时长,第三项是允许外界通过http方式访问资源。AppleScript 纯文本查看复制代码1234connect_timeout=10tracker_server=192.168.156.13:22122url_have_group_name =truestore_path0=/fastdfs/storage复制FastDFS里的2个文件,到/etc/fdfs目录中,如下所示。AppleScript 纯文本查看复制代码010203040506070809101112rootfastdfs fdfs* cd /usr/local/fast/FastDFS/conf/rootfastdfs conf* ll总用量 84-rw-r-r-. 1 8980 users 23981 12月 2 2014 anti-steal.jpg-rw-r-r-. 1 8980 users 1461 12月 2 2014 client.conf-rw-r-r-. 1 8980 users 858 12月 2 2014 http.conf-rw-r-r-. 1 8980 users 31172 12月 2 2014 mime.types-rw-r-r-. 1 8980 users 7829 12月 2 2014 storage.conf-rw-r-r-. 1 8980 users 105 12月 2 2014 storage_ids.conf-rw-r-r-. 1 8980 users 7102 12月 2 2014 tracker.confrootfastdfs conf* cp http.conf mime.types /etc/fdfs/rootfastdfs conf*创建一个软连接,在/fastdfs/storage文件存储目录下创建软连接,将其到实际存放数据 的目录,如下所示。AppleScript 纯文本查看复制代码12rootfastdfs conf* ln -s /fastdfs/storage/data/ /fastdfs/storage/data/M00rootfastdfs conf*进入到/usr/local/nginx/conf/目录下,修改nginx.conf文件,如下图所示。修改的内容如下图示可以直接复制下面的内容。AppleScript 纯文本查看复制代码12345listen8888;location/group(0-9)/M00ngx_fastdfs_module;设置nginx开机自启动,这样下次重启设备之后,tracker、storage、nginx都自动启动了,直接就可以使用服务,如下所示。AppleScript 纯文本查看复制代码010203040506070809101112rootfastdfs * vim /etc/rc.d/rc.local*!/bin/sh* This script will be executed *after* all the other init scripts.* You can put your own initialization stuff in here if you dont* want to do the full Sys V style init stuff.touch /var/lock/subsys/local/etc/init.d/fdfs_trackerd start/etc/init.d/fdfs_storaged start/usr/local/nginx/sbin/nginx启动nginx,如下所示。AppleScript 纯文本查看复制代码123rootfastdfs conf* /usr/local/nginx/sbin/nginxngx_http_fastdfs_set pid=6809rootfastdfs conf*5、在通过8888端口访问图片之前先配置下防火墙,允许外界访问8888端口,添加的一行是-A INPUT -m state -state NEW -m tcp -p tcp -dport 8888 -j ACCEPT,如下图所示。配置完防火墙后重启防火墙AppleScript 纯文本查看复制代码123456rootfastdfs conf* service iptables restartiptables:将链设置为政策 ACCEPT:filter 确定iptables:清除防火墙规则: 确定iptables:正在卸载模块: 确定iptables:应用防火墙规则: 确定rootfastdfs conf*6、现在我们便可以通过http的方式访问我们刚才上传的图片了(我们刚才上传图片返回的地址是group1/M00/00/00/wKicDVjr_ayAE4VVAAHk-VzqZ6w020.jpg),如下图所示。至此,一个单机版的FastDFS便搭建完毕了!. v
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 管理文书 > 工作总结


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!