


版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、.搭建單機版的FastDFS服務(wù)器由于FastDFS集群搭建非常復(fù)雜,對于初期學(xué)習(xí)FastDFS來說,搭建個單機版的作為入門更為實際一些。第一步:搭建虛擬環(huán)境FastDFS需要在Linux系統(tǒng)上安裝,我們一般使用的都是Windows系統(tǒng),這樣就需要有虛擬環(huán)境,我這里使用Vmware12創(chuàng)建虛擬機第二步:配置靜態(tài)IP而且要保證能上網(wǎng)需要提醒的是,由于最小化安裝默認是沒有vim命令的,因此在配置靜態(tài)IP時使用vi命令即可。第三步:安裝vim命令 之所以安裝vim命令是因為在安裝它的同時會自動幫我們安裝perl,而perl在進行編譯安裝時是必須要有的。安裝vim的命令是:yum install vi
2、m-enhanced第四步:安裝gcc使用命令:yum install make cmake gcc gcc-c+進行安裝即可第五步:上傳安裝文件到Linux服務(wù)器為了便于管理,我們在Linux服務(wù)器上新建一個/usr/local/software目錄,專門用于存放安裝包,如下所示AppleScript 純文本查看復(fù)制代碼12rootfastdfs * mkdir /usr/local/software rootfastdfs *下面我們把需要用到的安裝包都上傳到/usr/local/software目錄下,我們可以使用XShell和Xftp5相結(jié)合來方便的進行上傳下載操作。也可以通
3、過安裝rzsz命令來進行上傳下載操作,安裝rzsz的命令是yum install lrzsz,安裝完之后,rz表示上傳,sz 文件表示下載。上傳完之后,如下所示AppleScript 純文本查看復(fù)制代碼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
4、 -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.gz rootfastdfs software*第六步:安裝zip和unzip命令由于解壓.zip結(jié)尾的文件需要用到unzip命令,因此我們需要安裝,安裝命令是yum install zip unzip第七步:安裝libfastmon1、解壓AppleScript 純文本查看復(fù)制代碼1rootfastdfs softwar
5、e* unzip libfastmon-master.zip -d /usr/local/fast/2、進入目錄AppleScript 純文本查看復(fù)制代碼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
6、 582 12月 28 2017 INSTALL -rw-r-r-. 1 root root 1342 12月 28 2017 libfastmon.spec -rwxr-xr-x. 1root root 215112月 282017make.sh drwxr-xr-x. 2root root 409612月 282017php-fastmon -rw-r-r-. 1 root root 617 12月 28 2017 README drwxr-xr-x. 2root root
7、 409612月 282017src rootfastdfs libfastmon-master*3、編譯AppleScript 純文本查看復(fù)制代碼1rootfastdfs libfastmon-master* ./make.sh4、安裝AppleScript 純文本查看復(fù)制代碼1rootfastdfs libfastmon-master* ./make.sh install 第八步:創(chuàng)建軟 FastDFS主程序設(shè)置的目錄為/usr/local/lib/,所以我們需要創(chuàng)建/ usr/lib64/下的一些核心執(zhí)行程序的
8、軟連接文件。如下所示。AppleScript 純文本查看復(fù)制代碼1234rootfastdfs libfastmon-master* ln -s /usr/lib64/libfastmon.so /usr/local/lib/libfastmon.so rootfastdfs libfastmon-master* ln -s /usr/lib64/libfastmon.so /usr/lib/libfastmon.so rootfastdfs libfastmon-master* ln -s /usr/lib64/libfdfsclient.so /usr/local/li
9、b/libfdfsclient.so rootfastdfs libfastmon-master* ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so第九步:安裝FastDFS 1、進入到cd /usr/local/software下,解壓FastDFS_v5.05.tar.gz文件 AppleScript 純文本查看復(fù)制代碼12345678rootfastdfs fast* cd /usr/local/software/ rootfastdfs softwa
10、re* 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
11、.2.tar.gz rootfastdfs software* tar -zxvf FastDFS_v5.05.tar.gz -C /usr/local/fast/2、編譯安裝AppleScript 純文本查看復(fù)制代碼123rootfastdfs software* cd /usr/local/fast/FastDFS/ rootfastdfs FastDFS* ./make.sh rootfastdfs FastDFS* ./make.sh install安裝完后,服務(wù)腳本位置如下AppleScript 純文本查看復(fù)制代碼1234rootfastdfs Fast
12、DFS* cd /etc/init.d/ && ls | grep fdfs fdfs_storaged fdfs_trackerd rootfastdfs init.d*配置文件位置如下:AppleScript 純文本查看復(fù)制代碼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 r
13、oot root 7829 12月 29 04:10 storage.conf.sample -rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.sample rootfastdfs fdfs*FastDFS一系列執(zhí)行腳本如下,可以看到有上傳文件腳本、下載文件腳本等等。AppleScript 純文本查看復(fù)制代碼01020304050607080910111213141516rootfastdfs fdfs* cd /usr/bin/ && ls | grep fdfs fdfs_appender
14、_test fdfs_appender_test1 fdfs_append_file fdfs_crc32 fdfs_delete_file fdfs_download_file fdfs_file_info fdfs_monitor fdfs_storaged fdfs_test fdfs_test1 fdfs_trackerd fdfs_upload_appender fdfs_upload_file rootfastdfs bin*3、因為FastD
15、FS服務(wù)腳本設(shè)置的bin目錄為/usr/local/bin/下,但是實際我們安裝在了/u sr/bin/下面。所以我們需要修改FastDFS配置文件中的路徑,也就是需要修改兩個配置文件使用命令vim /etc/init.d/fdfs_storaged進入編輯模式,然后直接輸入":",光標(biāo)會定位到最后一行,在":"后輸入"%s+/usr/local/bin+/usr/bin",如下圖所示。輸入完之后回車,會提示修改了7處。為了確保所有的/usr/local/bin都被替換了,我們可以再打開文件確認一下。接著修改第二個配置文件,我們使用命
16、令vim /etc/init.d/fdfs_trackerd進入編輯模式,接著按照上面那樣輸入":%s+/usr/local/bin+/usr/bin "并按回車,同樣會提醒我們修改了7處。第十步:配置跟蹤器1、進入到/etc/fdfs目錄并且復(fù)制一份tracker.conf.sample并命名為tracker.conf,如下所示。AppleScript 純文本查看復(fù)制代碼12345678rootfastdfs bin* cd /etc/fdfs/ rootfastdfs fdfs* ll 總用量 20 -rw-r-r-. 1 root roo
17、t 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.sample rootfastdfs fdfs* cp tracker.conf.sample tracker.conf rootfastdfs fdfs*2、使用命令vim /etc/fdfs/tracker.conf進入編輯模式,然后修改base_pa
18、th的值為/fastdfs/tracker,如下圖所示3、我們在上圖配置文件中配置的/fastdfs/tracker目前是不存在的,因此我們需要創(chuàng)建一下該目錄AppleScript 純文本查看復(fù)制代碼12rootfastdfs fdfs* mkdir -p /fastdfs/tracker rootfastdfs fdfs*4、配置防火墻,放開tracker使用的端口22122,使用命令vim /etc/sysconfig/iptables進入編輯模式,添加一行內(nèi)容-A INPUT -m state -state NEW -m tcp -p tcp -dport 22122 -j A
19、CCEPT,如下圖所示。5、重啟防火墻AppleScript 純文本查看復(fù)制代碼123456rootfastdfs fdfs* service iptables restart iptables:將鏈設(shè)置為政策 ACCEPT:filter 確定 iptables:清除防火墻規(guī)則:
20、 確定 iptables:正在卸載模塊:
21、; 確定 iptables:應(yīng)用防火墻規(guī)則:
22、60; 確定 rootfastdfs fdfs*6、在啟動tracker之前,/fastdfs/tracker目錄下是沒有任何文件的,如下所示AppleScript 純文本查看復(fù)制代碼123rootfastdfs tracker* cd /fastdfs/tracker/ && ll 總用量 0 rootfastdfs tracker*啟動tracker,啟動完之后,可以看到這個目錄下多了兩個目錄data和logs。如下所示。AppleScript 純文本查看復(fù)制代碼1234567rootfastdfs tracker* /etc/init.d/f
23、dfs_trackerd start Starting FastDFS tracker server: rootfastdfs tracker* cd /fastdfs/tracker/ && ll 總用量 8 drwxr-xr-x. 2root root 409612月 2905:01data drwxr-xr-x. 2root root 409612月 2905:01logs rootfastdfs tracker*7、設(shè)置開機自啟動,在rc.local文件中添加/etc/init.d/fd
24、fs_trackerd start,如下所示AppleScript 純文本查看復(fù)制代碼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 don't *
25、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目錄,復(fù)制一份storage.conf.sample文件并命名為storage.conf,如下所示。AppleScript 純文本查看復(fù)制代碼01020304050607080910111213141516rootfastdfs tracker* cd /etc/fdfs/
26、160;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.sample rootfa
27、stdfs fdfs* cp storage.conf.sample storage.conf rootfastdfs 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
28、7098 12月 29 04:45 tracker.conf -rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.sample rootfastdfs fdfs*2、修改storage.conf文件 ,我們使用命令vim /etc/fdfs/storage.conf進入編輯模式,對以下四項進行修改,3是我的虛擬機的IP,大家根據(jù)自己虛擬機的IP自行設(shè)置。AppleScript 純文本查看復(fù)制代碼1234base_path=/fastdfs/storage store_path0=/fa
29、stdfs/storage tracker_server=3:22122 http.server_port=88883、創(chuàng)建存儲目錄,如下所示。AppleScript 純文本查看復(fù)制代碼12rootfastdfs fdfs* mkdir -p /fastdfs/storage rootfastdfs fdfs*4、配置防火墻,允許外界訪問storage的默認端口23000,如下所示。AppleScript 純文本查看復(fù)制代碼0102030405060708091011121314151617rootfastdfs fdfs* vim /e
30、tc/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 A
31、CCEPT -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 -
32、reject-with icmp-host-prohibited -A FORWARD -j REJECT -reject-with icmp-host-prohibited MIT添加完之后,重啟防火墻,如下所示。AppleScript 純文本查看復(fù)制代碼123456rootfastdfs fdfs* service iptables restart iptables:將鏈設(shè)置為政策 ACCEPT:filter
33、; 確定 iptables:清除防火墻規(guī)則: 確定 iptables:正在卸載模塊:
34、160; 確定 iptables:應(yīng)用防火墻規(guī)則:
35、 確定 rootfastdfs fdfs*5、在啟動storage之前,/fastdbf/storage目錄下是沒有任何文件的AppleScript 純文本查看復(fù)制代碼123rootfastdfs fdfs* cd /fastdfs/storage/ && ll 總用量 0 rootfastdfs storage*啟動storage,啟動后再看/f
36、astdfs/storage目錄,可以看到多了data和logs。AppleScript 純文本查看復(fù)制代碼1234567rootfastdfs storage* /etc/init.d/fdfs_storaged start Starting FastDFS storage server: rootfastdfs storage* cd /fastdfs/storage/ && ll 總用量 8 drwxr-xr-x. 68root root 409612月 2905:21data drwxr-xr-x.
37、;2root root 409612月 2905:20logs rootfastdfs storage*6、查看FastDFS tracker和storage 是否啟動成功,當(dāng)看到如下所示信息時說明都啟動成功了。AppleScript 純文本查看復(fù)制代碼12345rootfastdfs storage* ps -ef | grep fdfs root 2124 1 005:01" &
38、#160; 00:00:00/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf root 2228 1 005:21" 00:00:00/usr/bin/fdfs_storaged /etc/fdfs/storage.conf root
39、160; 2238 1360 005:22pts/0 00:00:00grep fdfs rootfastdfs storage*7、我們進入到 /fastdfs/storage/data/目錄下,可以看到兩級共256*256個目錄,每級都是從00到FF,如下只是列出了第一級的目錄,點進去每個目錄都還有00到FF共256個目錄。AppleScript 純文本查看復(fù)制代碼0102030405060708091011rootfastdfs storage* cd /fastdfs/storage/data/ &a
40、mp;& ls 00 09 12 1B 24 2D 36 3F 48 51 5A 63 6C 75 7E 87 90 99 A2 AB B4 BD C6 CF D8 E1 EA F3 FC 01 0A 13 1C 25 2E
41、;37 40 49 52 5B 64 6D 76 7F 88 91 9A A3 AC B5 BE C7 D0 D9 E2 EB F4 FD 02 0B 14 1D 26 2F 38 41 4A 53 5C 65 6E 77
42、;80 89 92 9B A4 AD B6 BF C8 D1 DA E3 EC F5 fdfs_storaged.pid 03 0C 15 1E 27 30 39 42 4B 54 5D 66 6F 78 81 8A 93 9C A5 AE
43、0; B7 C0 C9 D2 DB E4 ED F6 FE 04 0D 16 1F 28 31 3A 43 4C 55 5E 67 70 79 82 8B 94 9D A6 AF B8 C1 CA D3 DC E5 EE F7
44、 FF 05 0E 17 20 29 32 3B 44 4D 56 5F 68 71 7A 83 8C 95 9E A7 B0 B9 C2 CB D4 DD E6 EF F8 storage_stat.dat 06 0F 18 21 2A
45、160;33 3C 45 4E 57 60 69 72 7B 84 8D 96 9F A8 B1 BA C3 CC D5 DE E7 F0 F9 sync 07 10 19 22 2B 34 3D 46 4F 58 61 6A 73
46、 7C 85 8E 97 A0 A9 B2 BB C4 CD D6 DF E8 F1 FA 08 11 1A 23 2C 35 3E 47 50 59 62 6B 74 7D 86 8F 98 A1 AA B3 BC C
47、5 CE D7 E0 E9 F2 FB rootfastdfs data*8、設(shè)置storage開機自啟動,添加一行/etc/init.d/fdfs_storaged start,如下所示。AppleScript 純文本查看復(fù)制代碼0102030405060708091011rootfastdfs data* vim /etc/rc.local *!/bin/sh * * This script will be executed *after*
48、all the other init scripts. * You can put your own initialization stuff in here if you don't * 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/f
49、dfs目錄下并復(fù)制一份client.conf.sample并更名為client.conf,如下所示。AppleScript 純文本查看復(fù)制代碼010203040506070809101112131415161718rootfastdfs data* cd /etc/fdfs rootfastdfs 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
50、60;-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.sample rootfastdfs fdfs* cp client.conf.sample client.conf rootfastdfs fdfs* ll 總用量 40 -rw-r-r-. 1 ro
51、ot 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 -
52、rw-r-r-. 1 root root 7102 12月 29 04:10 tracker.conf.sample rootfastdfs fdfs*2、使用命令vim /etc/fdfs/client.conf進入編輯模式并修改如下兩項內(nèi)容,如下所示。AppleScript 純文本查看復(fù)制代碼12base_path=/fastdfs/tracker tracker_server=3:221223、我們找到命令的腳本位置,并且使用命令,進行文件的上傳。AppleScript 純文本查看復(fù)制代碼010203040506070809101
53、11213141516rootfastdfs bin* cd /usr/bin/ && ls | grep fdfs fdfs_appender_test fdfs_appender_test1 fdfs_append_file fdfs_crc32 fdfs_delete_file fdfs_download_file fdfs_file_info fdfs_monitor fdfs_storaged fdfs_test fdfs_test1 fdfs_tr
54、ackerd fdfs_upload_appender fdfs_upload_file rootfastdfs bin*下面使用fdfs_upload_file腳本進行文件上傳操作,如下所示??梢钥吹揭呀?jīng)上傳成功了,返回的是圖片的保存位置:group1/M00/00/00/wKicDVjr_ayAE4VVAAHk-VzqZ6w020.jpgAppleScript 純文本查看復(fù)制代碼123rootfastdfs bin* /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /usr/local/software/3.jp
55、g group1/M00/00/00/wKicDVjr_ayAE4VVAAHk-VzqZ6w020.jpg rootfastdfs bin*第十三步:FastDFS與nginx相結(jié)合1、先安裝nginx,大家可以參考2、安裝fastdfs-nginxmodule_v1.16.tar.gz(fast與nginx相結(jié)合的模塊安裝包), 進入 /usr/local/software目錄并解壓,如下所示。AppleScript 純文本查看復(fù)制代碼010203040506070809101112rootfastdfs nginx-1.6.2* cd /usr/local/softwa
56、re/ 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.c fastdfs-nginx-module/src/mod_fastdfs.conf fastdfs-nginx-module/src/config fa
57、stdfs-nginx-module/src/mon.h fastdfs-nginx-module/src/mon.c fastdfs-nginx-module/INSTALL fastdfs-nginx-module/HISTORY rootfastdfs software*3、進入到/usr/local/fast目錄下可以看到解壓的fastdfs-nginx-module目錄,然后進入到fastdfs-nginx-module/src/目錄下,可以看到config文件。AppleScript 純文本查看復(fù)制代碼01020304050607080910
58、1112131415rootfastdfs software* cd /usr/local/fast/ rootfastdfs fast* ll 總用量 12 drwxr-xr-x. 108980users 409612月 2904:10FastDFS drwxrwxr-x. 3 500 500409612月 29 2017fastdfs-nginx-module drwxr-xr-x. 4root root 409612月 2903:30libfastmon-master
59、 rootfastdfs 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 50
60、0 3679 3月 30 2013 mod_fastdfs.conf -rw-rw-r-. 1 500 500 28542 5月 4 2014 ngx_http_fastdfs_module.c rootfastdfs src*修改該conf文件,我們把文件的第四行配置中的/usr/local/include都改為/usr/include,共兩處。4、fastdfs與nginx進行結(jié)合,由于我們剛才安裝過nginx了,因此在/usr/local目錄下已經(jīng)生成了一個nginx目錄了,如下圖所示。為了將nginx與fastdfs相
61、結(jié)合,我們先把這個nginx目錄刪除掉,如下圖所示,可以看到已經(jīng)沒有nginx目錄了。進入到nginx-1.6.2/目錄下并執(zhí)行配置和編譯安裝,如下所示。AppleScript 純文本查看復(fù)制代碼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復(fù)制fastdfs-
62、nginx-module中的配置文件,到/etc/fdfs目錄中,如下所示AppleScript 純文本查看復(fù)制代碼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
63、60;-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.c rootfastdfs src* cp /usr/local/fast/fastdfs-nginx-module/src/mod_fastdfs.conf /
64、etc/fdfs/ rootfastdfs src*我們到 /etc/fdfs/ 目錄下,修改我們剛copy過來的mod_fastdfs.conf 文件,需要修改的項如下,其中第一項是超時時長,第三項是允許外界通過http方式訪問資源。AppleScript 純文本查看復(fù)制代碼1234connect_timeout=10 tracker_server=3:22122 url_have_group_name =true store_path0=/fastdfs/storage復(fù)制FastDFS里的2個文件,到/etc/fdfs目錄
65、中,如下所示。AppleScript 純文本查看復(fù)制代碼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 use
66、rs 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.conf rootfastdfs conf* cp http.conf mime.types /etc/fdfs/ rootfastdfs conf*創(chuàng)建一個軟連接,在/fastdfs/storage文件存儲目錄下創(chuàng)建軟連接,將其到實際存放數(shù)據(jù) 的目錄,如下所示。AppleScript 純文
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- XPE銷售合同范本
- 勞務(wù)居間服務(wù)合同范本
- 化妝品合作合同范本
- 關(guān)于門窗合同范本
- 2024年廈門國際機場防爆安檢人員考試真題
- 加工電子合同范本
- 保安個人勞務(wù)派遣合同范本
- 2024年深圳市龍崗區(qū)青少年業(yè)余體校招聘筆試真題
- 2024年山東青島高新區(qū)營商環(huán)境觀察員社會招募筆試真題
- 農(nóng)資分公司加盟合同范例
- 四川省成都市2024年七年級《英語》上冊月考試題與參考答案
- 2025(人教版)數(shù)學(xué)一年級下冊全冊教學(xué)案
- 蘇科版 八年級物理下冊 第六章 綜合測試卷(2025年春)
- 2025年中學(xué)生心理健康教育心得體會例文(5篇)
- 小學(xué)生學(xué)會公平與公正的行為主題班會
- 2025年湖南交通職業(yè)技術(shù)學(xué)院高職單招職業(yè)適應(yīng)性測試近5年??及鎱⒖碱}庫含答案解析
- 江蘇省南通市2025屆高三第一次調(diào)研測試數(shù)學(xué)試題(南通一模)(含解析)
- 《大學(xué)物理矢量》課件
- 梅大高速塌方災(zāi)害調(diào)查評估報告及安全警示學(xué)習(xí)教育
- 福建省部分地市2025屆高中畢業(yè)班第一次質(zhì)量檢測 生物試卷(含答案)
- 2024-2025學(xué)年上學(xué)期上海初中英語七年級期末模擬試卷2
評論
0/150
提交評論