码迷,mamicode.com
首页 > 其他好文 > 详细

fastdfs 集群配置

时间:2017-06-23 18:21:11      阅读:2782      评论:0      收藏:0      [点我收藏+]

标签:frog   body   ges   xwindow   nec   github   rest   unit   taf   


fastdfs 简介
FastDFS是一个国产开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载)等,解决了大容量存储和负载均衡的问题。特别适合以文件为载体的在线服务,如相册网站、视频网站等等。FastDFS服务端有两个角色:跟踪器(tracker)和存储节点(storage)。跟踪器主要做调度工作,在访问上起负载均衡的作用。
官方论坛: http://www.csource.org
下载地址: http://sourceforge.net/projects/fastdfs/files/
github软件仓库
libfastcommon-FastDFS和FastDHT的通用函数库,地址:https://github.com/happyfish100/libfastcommon.git
FastDFS — FastDFS主代码,地址: https://github.com/happyfish100/fastdfs.git
fastdfs-nginx-module — FastDFS的nginx模块,地址:https://github.com/happyfish100/fastdfs-nginx-module.git

技术分享

安装文件:

FastDFS 5.x 取消了对 libevent 的依赖,添加了对 libfastcommon 的依赖。
本部署说明用到的软件版本:

libfastcommon v1.13

FastDFS v5.08

fastdfs-nginx-module v1.17

fastdfs安装配置:

创建用户与组

# groupadd fdfs

# useradd fdfs -g fdfs

解压、安装

在每一台trackerstorage服务器上执行

# tar xzvf FastDFS_v5.08.tar.gz

#cd FastDFS/

#./make.sh

#./make.sh install

# yum install -y gcc perl   # 安装依赖的软件包

#cd ~/fdfs/libfastcommon && ./make.sh && ./make.sh install

# cd ~/fdfs/fastdfs && ./make.sh && ./make.sh install

安装完成后,所有可执行文件在目录/usr/bin下,以fdfs_开头:

# ls /usr/bin/fdfs*

fdfs_monitor   fdfs_trackerd  fdfs_storaged

配置文件在目录/etc/fdfs 

client.conf.sample  storage.conf.sample  tracker.conf.sample

FastDFS配置

配置Tracker跟踪器

开放tracker监听端口访问

firewall-cmd --zone=public --add-port=22122/tcp --permanent
firewall-cmd --reload

vim /etc/sysconfig/iptables

service iptables restart

修改配置文件

mkdir -p /data/fastdfs
cd /etc/fdfs
cp tracker.conf.sample tracker.conf
cp /root/fdfs/fastdfs/conf/http.conf .
cp /root/fdfs/fastdfs/conf/mime.types .
sed -i ‘s:base_path=.*:base_path=/data/fastdfs:g‘ tracker.conf
sed -i ‘s:http.server_port=.*:http.server_port=80:g‘ tracker.con

技术分享
 1 connect_timeout=30
 2 network_timeout=60
 3 base_path=/data/fastdfs
 4 tracker_server=10.143.92.61:22122
 5 tracker_server=10.143.92.62:22122
 6 log_level=info
 7 use_connection_pool = false
 8 connection_pool_max_idle_time = 3600
 9 load_fdfs_parameters_from_tracker=false
10 use_storage_id = false
11 storage_ids_filename = storage_ids.conf
12 http.tracker_server_port=8080
client.conf
技术分享
 1 connect_timeout=30
 2 network_timeout=60
 3 base_path=/data/fastdfs
 4 tracker_server=10.143.92.61:22122
 5 tracker_server=10.143.92.62:22122
 6 log_level=info
 7 use_connection_pool = false
 8 connection_pool_max_idle_time = 3600
 9 load_fdfs_parameters_from_tracker=false
10 use_storage_id = false
11 storage_ids_filename = storage_ids.conf
12 http.tracker_server_port=8080
http.conf
技术分享
   1 # This is a comment. I love comments.
   2 
   3 # This file controls what Internet media types are sent to the client for
   4 # given file extension(s).  Sending the correct media type to the client
   5 # is important so they know how to handle the content of the file.
   6 # Extra types can either be added here or by using an AddType directive
   7 # in your config files. For more information about Internet media types,
   8 # please read RFC 2045, 2046, 2047, 2048, and 2077.  The Internet media type
   9 # registry is at <http://www.iana.org/assignments/media-types/>.
  10 
  11 # MIME type                    Extensions
  12 application/activemessage
  13 application/andrew-inset            ez
  14 application/applefile
  15 application/atom+xml                atom
  16 application/atomcat+xml                atomcat
  17 application/atomicmail
  18 application/atomsvc+xml                atomsvc
  19 application/auth-policy+xml
  20 application/batch-smtp
  21 application/beep+xml
  22 application/cals-1840
  23 application/ccxml+xml                ccxml
  24 application/cellml+xml
  25 application/cnrp+xml
  26 application/commonground
  27 application/conference-info+xml
  28 application/cpl+xml
  29 application/csta+xml
  30 application/cstadata+xml
  31 application/cybercash
  32 application/davmount+xml            davmount
  33 application/dca-rft
  34 application/dec-dx
  35 application/dialog-info+xml
  36 application/dicom
  37 application/dns
  38 application/dvcs
  39 application/ecmascript                ecma
  40 application/edi-consent
  41 application/edi-x12
  42 application/edifact
  43 application/epp+xml
  44 application/eshop
  45 application/fastinfoset
  46 application/fastsoap
  47 application/fits
  48 application/font-tdpfr                pfr
  49 application/h224
  50 application/http
  51 application/hyperstudio                stk
  52 application/iges
  53 application/im-iscomposing+xml
  54 application/index
  55 application/index.cmd
  56 application/index.obj
  57 application/index.response
  58 application/index.vnd
  59 application/iotp
  60 application/ipp
  61 application/isup
  62 application/javascript                js
  63 application/json                json
  64 application/kpml-request+xml
  65 application/kpml-response+xml
  66 application/lost+xml                lostxml
  67 application/mac-binhex40            hqx
  68 application/mac-compactpro            cpt
  69 application/macwriteii
  70 application/marc                mrc
  71 application/mathematica                ma nb mb
  72 application/mathml+xml                mathml
  73 application/mbms-associated-procedure-description+xml
  74 application/mbms-deregister+xml
  75 application/mbms-envelope+xml
  76 application/mbms-msk+xml
  77 application/mbms-msk-response+xml
  78 application/mbms-protection-description+xml
  79 application/mbms-reception-report+xml
  80 application/mbms-register+xml
  81 application/mbms-register-response+xml
  82 application/mbms-user-service-description+xml
  83 application/mbox                mbox
  84 application/media_control+xml
  85 application/mediaservercontrol+xml        mscml
  86 application/mikey
  87 application/moss-keys
  88 application/moss-signature
  89 application/mosskey-data
  90 application/mosskey-request
  91 application/mp4                    mp4s
  92 application/mpeg4-generic
  93 application/mpeg4-iod
  94 application/mpeg4-iod-xmt
  95 application/msword                doc dot
  96 application/mxf                    mxf
  97 application/nasdata
  98 application/news-transmission
  99 application/nss
 100 application/ocsp-request
 101 application/ocsp-response
 102 application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc
 103 application/oda                    oda
 104 application/oebps-package+xml
 105 application/ogg                    ogx
 106 application/parityfec
 107 application/patch-ops-error+xml            xer
 108 application/pdf                    pdf
 109 application/pgp-encrypted            pgp
 110 application/pgp-keys
 111 application/pgp-signature            asc sig
 112 application/pics-rules                prf
 113 application/pidf+xml
 114 application/pidf-diff+xml
 115 application/pkcs10                p10
 116 application/pkcs7-mime                p7m p7c
 117 application/pkcs7-signature            p7s
 118 application/pkix-cert                cer
 119 application/pkix-crl                crl
 120 application/pkix-pkipath            pkipath
 121 application/pkixcmp                pki
 122 application/pls+xml                pls
 123 application/poc-settings+xml
 124 application/postscript                ai eps ps
 125 application/prs.alvestrand.titrax-sheet
 126 application/prs.cww                cww
 127 application/prs.nprend
 128 application/prs.plucker
 129 application/qsig
 130 application/rdf+xml                rdf
 131 application/reginfo+xml                rif
 132 application/relax-ng-compact-syntax        rnc
 133 application/remote-printing
 134 application/resource-lists+xml            rl
 135 application/resource-lists-diff+xml        rld
 136 application/riscos
 137 application/rlmi+xml
 138 application/rls-services+xml            rs
 139 application/rsd+xml                rsd
 140 application/rss+xml                rss
 141 application/rtf                    rtf
 142 application/rtx
 143 application/samlassertion+xml
 144 application/samlmetadata+xml
 145 application/sbml+xml                sbml
 146 application/scvp-cv-request            scq
 147 application/scvp-cv-response            scs
 148 application/scvp-vp-request            spq
 149 application/scvp-vp-response            spp
 150 application/sdp                    sdp
 151 application/set-payment
 152 application/set-payment-initiation        setpay
 153 application/set-registration
 154 application/set-registration-initiation        setreg
 155 application/sgml
 156 application/sgml-open-catalog
 157 application/shf+xml                shf
 158 application/sieve
 159 application/simple-filter+xml
 160 application/simple-message-summary
 161 application/simplesymbolcontainer
 162 application/slate
 163 application/smil
 164 application/smil+xml                smi smil
 165 application/soap+fastinfoset
 166 application/soap+xml
 167 application/sparql-query            rq
 168 application/sparql-results+xml            srx
 169 application/spirits-event+xml
 170 application/srgs                gram
 171 application/srgs+xml                grxml
 172 application/ssml+xml                ssml
 173 application/timestamp-query
 174 application/timestamp-reply
 175 application/tve-trigger
 176 application/ulpfec
 177 application/vemmi
 178 application/vividence.scriptfile
 179 application/vnd.3gpp.bsf+xml
 180 application/vnd.3gpp.pic-bw-large        plb
 181 application/vnd.3gpp.pic-bw-small        psb
 182 application/vnd.3gpp.pic-bw-var            pvb
 183 application/vnd.3gpp.sms
 184 application/vnd.3gpp2.bcmcsinfo+xml
 185 application/vnd.3gpp2.sms
 186 application/vnd.3gpp2.tcap            tcap
 187 application/vnd.3m.post-it-notes        pwn
 188 application/vnd.accpac.simply.aso        aso
 189 application/vnd.accpac.simply.imp        imp
 190 application/vnd.acucobol            acu
 191 application/vnd.acucorp                atc acutc
 192 application/vnd.adobe.xdp+xml            xdp
 193 application/vnd.adobe.xfdf            xfdf
 194 application/vnd.aether.imp
 195 application/vnd.americandynamics.acc        acc
 196 application/vnd.amiga.ami            ami
 197 application/vnd.anser-web-certificate-issue-initiation    cii
 198 application/vnd.anser-web-funds-transfer-initiation    fti
 199 application/vnd.antix.game-component        atx
 200 application/vnd.apple.installer+xml        mpkg
 201 application/vnd.arastra.swi            swi
 202 application/vnd.audiograph            aep
 203 application/vnd.autopackage
 204 application/vnd.avistar+xml
 205 application/vnd.blueice.multipass        mpm
 206 application/vnd.bmi                bmi
 207 application/vnd.businessobjects            rep
 208 application/vnd.cab-jscript
 209 application/vnd.canon-cpdl
 210 application/vnd.canon-lips
 211 application/vnd.cendio.thinlinc.clientconf
 212 application/vnd.chemdraw+xml            cdxml
 213 application/vnd.chipnuts.karaoke-mmd        mmd
 214 application/vnd.cinderella            cdy
 215 application/vnd.cirpack.isdn-ext
 216 application/vnd.claymore            cla
 217 application/vnd.clonk.c4group            c4g c4d c4f c4p c4u
 218 application/vnd.commerce-battelle
 219 application/vnd.commonspace            csp cst
 220 application/vnd.contact.cmsg            cdbcmsg
 221 application/vnd.cosmocaller            cmc
 222 application/vnd.crick.clicker            clkx
 223 application/vnd.crick.clicker.keyboard        clkk
 224 application/vnd.crick.clicker.palette        clkp
 225 application/vnd.crick.clicker.template        clkt
 226 application/vnd.crick.clicker.wordbank        clkw
 227 application/vnd.criticaltools.wbs+xml        wbs
 228 application/vnd.ctc-posml            pml
 229 application/vnd.ctct.ws+xml
 230 application/vnd.cups-pdf
 231 application/vnd.cups-postscript
 232 application/vnd.cups-ppd            ppd
 233 application/vnd.cups-raster
 234 application/vnd.cups-raw
 235 application/vnd.curl                curl
 236 application/vnd.cybank
 237 application/vnd.data-vision.rdz            rdz
 238 application/vnd.denovo.fcselayout-link        fe_launch
 239 application/vnd.dna                dna
 240 application/vnd.dolby.mlp            mlp
 241 application/vnd.dpgraph                dpg
 242 application/vnd.dreamfactory            dfac
 243 application/vnd.dvb.esgcontainer
 244 application/vnd.dvb.ipdcesgaccess
 245 application/vnd.dvb.iptv.alfec-base
 246 application/vnd.dvb.iptv.alfec-enhancement
 247 application/vnd.dxr
 248 application/vnd.ecdis-update
 249 application/vnd.ecowin.chart            mag
 250 application/vnd.ecowin.filerequest
 251 application/vnd.ecowin.fileupdate
 252 application/vnd.ecowin.series
 253 application/vnd.ecowin.seriesrequest
 254 application/vnd.ecowin.seriesupdate
 255 application/vnd.enliven                nml
 256 application/vnd.epson.esf            esf
 257 application/vnd.epson.msf            msf
 258 application/vnd.epson.quickanime        qam
 259 application/vnd.epson.salt            slt
 260 application/vnd.epson.ssf            ssf
 261 application/vnd.ericsson.quickcall
 262 application/vnd.eszigno3+xml            es3 et3
 263 application/vnd.eudora.data
 264 application/vnd.ezpix-album            ez2
 265 application/vnd.ezpix-package            ez3
 266 application/vnd.fdf                fdf
 267 application/vnd.ffsns
 268 application/vnd.fints
 269 application/vnd.flographit            gph
 270 application/vnd.fluxtime.clip            ftc
 271 application/vnd.font-fontforge-sfd
 272 application/vnd.framemaker            fm frame maker
 273 application/vnd.frogans.fnc            fnc
 274 application/vnd.frogans.ltf            ltf
 275 application/vnd.fsc.weblaunch            fsc
 276 application/vnd.fujitsu.oasys            oas
 277 application/vnd.fujitsu.oasys2            oa2
 278 application/vnd.fujitsu.oasys3            oa3
 279 application/vnd.fujitsu.oasysgp            fg5
 280 application/vnd.fujitsu.oasysprs        bh2
 281 application/vnd.fujixerox.art-ex
 282 application/vnd.fujixerox.art4
 283 application/vnd.fujixerox.hbpl
 284 application/vnd.fujixerox.ddd            ddd
 285 application/vnd.fujixerox.docuworks        xdw
 286 application/vnd.fujixerox.docuworks.binder    xbd
 287 application/vnd.fut-misnet
 288 application/vnd.fuzzysheet            fzs
 289 application/vnd.genomatix.tuxedo        txd
 290 application/vnd.gmx                gmx
 291 application/vnd.google-earth.kml+xml        kml
 292 application/vnd.google-earth.kmz        kmz
 293 application/vnd.grafeq                gqf gqs
 294 application/vnd.gridmp
 295 application/vnd.groove-account            gac
 296 application/vnd.groove-help            ghf
 297 application/vnd.groove-identity-message        gim
 298 application/vnd.groove-injector            grv
 299 application/vnd.groove-tool-message        gtm
 300 application/vnd.groove-tool-template        tpl
 301 application/vnd.groove-vcard            vcg
 302 application/vnd.handheld-entertainment+xml    zmm
 303 application/vnd.hbci                hbci
 304 application/vnd.hcl-bireports
 305 application/vnd.hhe.lesson-player        les
 306 application/vnd.hp-hpgl                hpgl
 307 application/vnd.hp-hpid                hpid
 308 application/vnd.hp-hps                hps
 309 application/vnd.hp-jlyt                jlt
 310 application/vnd.hp-pcl                pcl
 311 application/vnd.hp-pclxl            pclxl
 312 application/vnd.httphone
 313 application/vnd.hydrostatix.sof-data        sfd-hdstx
 314 application/vnd.hzn-3d-crossword        x3d
 315 application/vnd.ibm.afplinedata
 316 application/vnd.ibm.electronic-media
 317 application/vnd.ibm.minipay            mpy
 318 application/vnd.ibm.modcap            afp listafp list3820
 319 application/vnd.ibm.rights-management        irm
 320 application/vnd.ibm.secure-container        sc
 321 application/vnd.iccprofile            icc icm
 322 application/vnd.igloader            igl
 323 application/vnd.immervision-ivp            ivp
 324 application/vnd.immervision-ivu            ivu
 325 application/vnd.informedcontrol.rms+xml
 326 application/vnd.intercon.formnet        xpw xpx
 327 application/vnd.intertrust.digibox
 328 application/vnd.intertrust.nncp
 329 application/vnd.intu.qbo            qbo
 330 application/vnd.intu.qfx            qfx
 331 application/vnd.iptc.g2.conceptitem+xml
 332 application/vnd.iptc.g2.knowledgeitem+xml
 333 application/vnd.iptc.g2.newsitem+xml
 334 application/vnd.iptc.g2.packageitem+xml
 335 application/vnd.ipunplugged.rcprofile        rcprofile
 336 application/vnd.irepository.package+xml        irp
 337 application/vnd.is-xpr                xpr
 338 application/vnd.jam                jam
 339 application/vnd.japannet-directory-service
 340 application/vnd.japannet-jpnstore-wakeup
 341 application/vnd.japannet-payment-wakeup
 342 application/vnd.japannet-registration
 343 application/vnd.japannet-registration-wakeup
 344 application/vnd.japannet-setstore-wakeup
 345 application/vnd.japannet-verification
 346 application/vnd.japannet-verification-wakeup
 347 application/vnd.jcp.javame.midlet-rms        rms
 348 application/vnd.jisp                jisp
 349 application/vnd.joost.joda-archive        joda
 350 application/vnd.kahootz                ktz ktr
 351 application/vnd.kde.karbon            karbon
 352 application/vnd.kde.kchart            chrt
 353 application/vnd.kde.kformula            kfo
 354 application/vnd.kde.kivio            flw
 355 application/vnd.kde.kontour            kon
 356 application/vnd.kde.kpresenter            kpr kpt
 357 application/vnd.kde.kspread            ksp
 358 application/vnd.kde.kword            kwd kwt
 359 application/vnd.kenameaapp            htke
 360 application/vnd.kidspiration            kia
 361 application/vnd.kinar                kne knp
 362 application/vnd.koan                skp skd skt skm
 363 application/vnd.kodak-descriptor        sse
 364 application/vnd.liberty-request+xml
 365 application/vnd.llamagraphics.life-balance.desktop    lbd
 366 application/vnd.llamagraphics.life-balance.exchange+xml    lbe
 367 application/vnd.lotus-1-2-3            123
 368 application/vnd.lotus-approach            apr
 369 application/vnd.lotus-freelance            pre
 370 application/vnd.lotus-notes            nsf
 371 application/vnd.lotus-organizer            org
 372 application/vnd.lotus-screencam            scm
 373 application/vnd.lotus-wordpro            lwp
 374 application/vnd.macports.portpkg        portpkg
 375 application/vnd.marlin.drm.actiontoken+xml
 376 application/vnd.marlin.drm.conftoken+xml
 377 application/vnd.marlin.drm.license+xml
 378 application/vnd.marlin.drm.mdcf
 379 application/vnd.mcd                mcd
 380 application/vnd.medcalcdata            mc1
 381 application/vnd.mediastation.cdkey        cdkey
 382 application/vnd.meridian-slingshot
 383 application/vnd.mfer                mwf
 384 application/vnd.mfmp                mfm
 385 application/vnd.micrografx.flo            flo
 386 application/vnd.micrografx.igx            igx
 387 application/vnd.mif                mif
 388 application/vnd.minisoft-hp3000-save
 389 application/vnd.mitsubishi.misty-guard.trustweb
 390 application/vnd.mobius.daf            daf
 391 application/vnd.mobius.dis            dis
 392 application/vnd.mobius.mbk            mbk
 393 application/vnd.mobius.mqy            mqy
 394 application/vnd.mobius.msl            msl
 395 application/vnd.mobius.plc            plc
 396 application/vnd.mobius.txf            txf
 397 application/vnd.mophun.application        mpn
 398 application/vnd.mophun.certificate        mpc
 399 application/vnd.motorola.flexsuite
 400 application/vnd.motorola.flexsuite.adsi
 401 application/vnd.motorola.flexsuite.fis
 402 application/vnd.motorola.flexsuite.gotap
 403 application/vnd.motorola.flexsuite.kmr
 404 application/vnd.motorola.flexsuite.ttc
 405 application/vnd.motorola.flexsuite.wem
 406 application/vnd.motorola.iprm
 407 application/vnd.mozilla.xul+xml            xul
 408 application/vnd.ms-artgalry            cil
 409 application/vnd.ms-asf                asf
 410 application/vnd.ms-cab-compressed        cab
 411 application/vnd.ms-excel            xls xlm xla xlc xlt xlw
 412 application/vnd.ms-fontobject            eot
 413 application/vnd.ms-htmlhelp            chm
 414 application/vnd.ms-ims                ims
 415 application/vnd.ms-lrm                lrm
 416 application/vnd.ms-playready.initiator+xml
 417 application/vnd.ms-powerpoint            ppt pps pot
 418 application/vnd.ms-project            mpp mpt
 419 application/vnd.ms-tnef
 420 application/vnd.ms-wmdrm.lic-chlg-req
 421 application/vnd.ms-wmdrm.lic-resp
 422 application/vnd.ms-wmdrm.meter-chlg-req
 423 application/vnd.ms-wmdrm.meter-resp
 424 application/vnd.ms-works            wps wks wcm wdb
 425 application/vnd.ms-wpl                wpl
 426 application/vnd.ms-xpsdocument            xps
 427 application/vnd.mseq                mseq
 428 application/vnd.msign
 429 application/vnd.multiad.creator
 430 application/vnd.multiad.creator.cif
 431 application/vnd.music-niff
 432 application/vnd.musician            mus
 433 application/vnd.muvee.style            msty
 434 application/vnd.ncd.control
 435 application/vnd.ncd.reference
 436 application/vnd.nervana
 437 application/vnd.netfpx
 438 application/vnd.neurolanguage.nlu        nlu
 439 application/vnd.noblenet-directory        nnd
 440 application/vnd.noblenet-sealer            nns
 441 application/vnd.noblenet-web            nnw
 442 application/vnd.nokia.catalogs
 443 application/vnd.nokia.conml+wbxml
 444 application/vnd.nokia.conml+xml
 445 application/vnd.nokia.isds-radio-presets
 446 application/vnd.nokia.iptv.config+xml
 447 application/vnd.nokia.landmark+wbxml
 448 application/vnd.nokia.landmark+xml
 449 application/vnd.nokia.landmarkcollection+xml
 450 application/vnd.nokia.n-gage.ac+xml
 451 application/vnd.nokia.n-gage.data        ngdat
 452 application/vnd.nokia.n-gage.symbian.install    n-gage
 453 application/vnd.nokia.ncd
 454 application/vnd.nokia.pcd+wbxml
 455 application/vnd.nokia.pcd+xml
 456 application/vnd.nokia.radio-preset        rpst
 457 application/vnd.nokia.radio-presets        rpss
 458 application/vnd.novadigm.edm            edm
 459 application/vnd.novadigm.edx            edx
 460 application/vnd.novadigm.ext            ext
 461 application/vnd.oasis.opendocument.chart        odc
 462 application/vnd.oasis.opendocument.chart-template    otc
 463 application/vnd.oasis.opendocument.formula        odf
 464 application/vnd.oasis.opendocument.formula-template    otf
 465 application/vnd.oasis.opendocument.graphics        odg
 466 application/vnd.oasis.opendocument.graphics-template    otg
 467 application/vnd.oasis.opendocument.image        odi
 468 application/vnd.oasis.opendocument.image-template    oti
 469 application/vnd.oasis.opendocument.presentation        odp
 470 application/vnd.oasis.opendocument.presentation-template otp
 471 application/vnd.oasis.opendocument.spreadsheet        ods
 472 application/vnd.oasis.opendocument.spreadsheet-template    ots
 473 application/vnd.oasis.opendocument.text            odt
 474 application/vnd.oasis.opendocument.text-master        otm
 475 application/vnd.oasis.opendocument.text-template    ott
 476 application/vnd.oasis.opendocument.text-web        oth
 477 application/vnd.obn
 478 application/vnd.olpc-sugar            xo
 479 application/vnd.oma-scws-config
 480 application/vnd.oma-scws-http-request
 481 application/vnd.oma-scws-http-response
 482 application/vnd.oma.bcast.associated-procedure-parameter+xml
 483 application/vnd.oma.bcast.drm-trigger+xml
 484 application/vnd.oma.bcast.imd+xml
 485 application/vnd.oma.bcast.ltkm
 486 application/vnd.oma.bcast.notification+xml
 487 application/vnd.oma.bcast.provisioningtrigger
 488 application/vnd.oma.bcast.sgboot
 489 application/vnd.oma.bcast.sgdd+xml
 490 application/vnd.oma.bcast.sgdu
 491 application/vnd.oma.bcast.simple-symbol-container
 492 application/vnd.oma.bcast.smartcard-trigger+xml
 493 application/vnd.oma.bcast.sprov+xml
 494 application/vnd.oma.bcast.stkm
 495 application/vnd.oma.dcd
 496 application/vnd.oma.dcdc
 497 application/vnd.oma.dd2+xml            dd2
 498 application/vnd.oma.drm.risd+xml
 499 application/vnd.oma.group-usage-list+xml
 500 application/vnd.oma.poc.detailed-progress-report+xml
 501 application/vnd.oma.poc.final-report+xml
 502 application/vnd.oma.poc.groups+xml
 503 application/vnd.oma.poc.invocation-descriptor+xml
 504 application/vnd.oma.poc.optimized-progress-report+xml
 505 application/vnd.oma.xcap-directory+xml
 506 application/vnd.omads-email+xml
 507 application/vnd.omads-file+xml
 508 application/vnd.omads-folder+xml
 509 application/vnd.omaloc-supl-init
 510 application/vnd.openofficeorg.extension        oxt
 511 application/vnd.osa.netdeploy
 512 application/vnd.osgi.dp                dp
 513 application/vnd.otps.ct-kip+xml
 514 application/vnd.palm                prc pdb pqa oprc
 515 application/vnd.paos.xml
 516 application/vnd.pg.format            str
 517 application/vnd.pg.osasli            ei6
 518 application/vnd.piaccess.application-licence
 519 application/vnd.picsel                efif
 520 application/vnd.poc.group-advertisement+xml
 521 application/vnd.pocketlearn            plf
 522 application/vnd.powerbuilder6            pbd
 523 application/vnd.powerbuilder6-s
 524 application/vnd.powerbuilder7
 525 application/vnd.powerbuilder7-s
 526 application/vnd.powerbuilder75
 527 application/vnd.powerbuilder75-s
 528 application/vnd.preminet
 529 application/vnd.previewsystems.box        box
 530 application/vnd.proteus.magazine        mgz
 531 application/vnd.publishare-delta-tree        qps
 532 application/vnd.pvi.ptid1            ptid
 533 application/vnd.pwg-multiplexed
 534 application/vnd.pwg-xhtml-print+xml
 535 application/vnd.qualcomm.brew-app-res
 536 application/vnd.quark.quarkxpress        qxd qxt qwd qwt qxl qxb
 537 application/vnd.rapid
 538 application/vnd.recordare.musicxml        mxl
 539 application/vnd.recordare.musicxml+xml
 540 application/vnd.renlearn.rlprint
 541 application/vnd.rn-realmedia            rm
 542 application/vnd.route66.link66+xml        link66
 543 application/vnd.ruckus.download
 544 application/vnd.s3sms
 545 application/vnd.sbm.mid2
 546 application/vnd.scribus
 547 application/vnd.sealed.3df
 548 application/vnd.sealed.csf
 549 application/vnd.sealed.doc
 550 application/vnd.sealed.eml
 551 application/vnd.sealed.mht
 552 application/vnd.sealed.net
 553 application/vnd.sealed.ppt
 554 application/vnd.sealed.tiff
 555 application/vnd.sealed.xls
 556 application/vnd.sealedmedia.softseal.html
 557 application/vnd.sealedmedia.softseal.pdf
 558 application/vnd.seemail                see
 559 application/vnd.sema                sema
 560 application/vnd.semd                semd
 561 application/vnd.semf                semf
 562 application/vnd.shana.informed.formdata        ifm
 563 application/vnd.shana.informed.formtemplate    itp
 564 application/vnd.shana.informed.interchange    iif
 565 application/vnd.shana.informed.package        ipk
 566 application/vnd.simtech-mindmapper        twd twds
 567 application/vnd.smaf                mmf
 568 application/vnd.software602.filler.form+xml
 569 application/vnd.software602.filler.form-xml-zip
 570 application/vnd.solent.sdkm+xml            sdkm sdkd
 571 application/vnd.spotfire.dxp            dxp
 572 application/vnd.spotfire.sfs            sfs
 573 application/vnd.sss-cod
 574 application/vnd.sss-dtf
 575 application/vnd.sss-ntf
 576 application/vnd.street-stream
 577 application/vnd.sun.wadl+xml
 578 application/vnd.sus-calendar            sus susp
 579 application/vnd.svd                svd
 580 application/vnd.swiftview-ics
 581 application/vnd.syncml+xml            xsm
 582 application/vnd.syncml.dm+wbxml            bdm
 583 application/vnd.syncml.dm+xml            xdm
 584 application/vnd.syncml.ds.notification
 585 application/vnd.tao.intent-module-archive    tao
 586 application/vnd.tmobile-livetv            tmo
 587 application/vnd.trid.tpt            tpt
 588 application/vnd.triscape.mxs            mxs
 589 application/vnd.trueapp                tra
 590 application/vnd.truedoc
 591 application/vnd.ufdl                ufd ufdl
 592 application/vnd.uiq.theme            utz
 593 application/vnd.umajin                umj
 594 application/vnd.unity                unityweb
 595 application/vnd.uoml+xml            uoml
 596 application/vnd.uplanet.alert
 597 application/vnd.uplanet.alert-wbxml
 598 application/vnd.uplanet.bearer-choice
 599 application/vnd.uplanet.bearer-choice-wbxml
 600 application/vnd.uplanet.cacheop
 601 application/vnd.uplanet.cacheop-wbxml
 602 application/vnd.uplanet.channel
 603 application/vnd.uplanet.channel-wbxml
 604 application/vnd.uplanet.list
 605 application/vnd.uplanet.list-wbxml
 606 application/vnd.uplanet.listcmd
 607 application/vnd.uplanet.listcmd-wbxml
 608 application/vnd.uplanet.signal
 609 application/vnd.vcx                vcx
 610 application/vnd.vd-study
 611 application/vnd.vectorworks
 612 application/vnd.vidsoft.vidconference
 613 application/vnd.visio                vsd vst vss vsw
 614 application/vnd.visionary            vis
 615 application/vnd.vividence.scriptfile
 616 application/vnd.vsf                vsf
 617 application/vnd.wap.sic
 618 application/vnd.wap.slc
 619 application/vnd.wap.wbxml            wbxml
 620 application/vnd.wap.wmlc            wmlc
 621 application/vnd.wap.wmlscriptc            wmlsc
 622 application/vnd.webturbo            wtb
 623 application/vnd.wfa.wsc
 624 application/vnd.wmc
 625 application/vnd.wmf.bootstrap
 626 application/vnd.wordperfect            wpd
 627 application/vnd.wqd                wqd
 628 application/vnd.wrq-hp3000-labelled
 629 application/vnd.wt.stf                stf
 630 application/vnd.wv.csp+wbxml
 631 application/vnd.wv.csp+xml
 632 application/vnd.wv.ssp+xml
 633 application/vnd.xara                xar
 634 application/vnd.xfdl                xfdl
 635 application/vnd.xmi+xml
 636 application/vnd.xmpie.cpkg
 637 application/vnd.xmpie.dpkg
 638 application/vnd.xmpie.plan
 639 application/vnd.xmpie.ppkg
 640 application/vnd.xmpie.xlim
 641 application/vnd.yamaha.hv-dic            hvd
 642 application/vnd.yamaha.hv-script        hvs
 643 application/vnd.yamaha.hv-voice            hvp
 644 application/vnd.yamaha.smaf-audio        saf
 645 application/vnd.yamaha.smaf-phrase        spf
 646 application/vnd.yellowriver-custom-menu        cmp
 647 application/vnd.zzazz.deck+xml            zaz
 648 application/voicexml+xml            vxml
 649 application/watcherinfo+xml
 650 application/whoispp-query
 651 application/whoispp-response
 652 application/winhlp                hlp
 653 application/wita
 654 application/wordperfect5.1
 655 application/wsdl+xml                wsdl
 656 application/wspolicy+xml            wspolicy
 657 application/x-ace-compressed            ace
 658 application/x-bcpio                bcpio
 659 application/x-bittorrent            torrent
 660 application/x-bzip                bz
 661 application/x-bzip2                bz2 boz
 662 application/x-cdlink                vcd
 663 application/x-chat                chat
 664 application/x-chess-pgn                pgn
 665 application/x-compress
 666 application/x-cpio                cpio
 667 application/x-csh                csh
 668 application/x-director                dcr dir dxr fgd
 669 application/x-dvi                dvi
 670 application/x-futuresplash            spl
 671 application/x-gtar                gtar
 672 application/x-gzip
 673 application/x-hdf                hdf
 674 application/x-latex                latex
 675 application/x-ms-wmd                wmd
 676 application/x-ms-wmz                wmz
 677 application/x-msaccess                mdb
 678 application/x-msbinder                obd
 679 application/x-mscardfile            crd
 680 application/x-msclip                clp
 681 application/x-msdownload            exe dll com bat msi
 682 application/x-msmediaview            mvb m13 m14
 683 application/x-msmetafile            wmf
 684 application/x-msmoney                mny
 685 application/x-mspublisher            pub
 686 application/x-msschedule            scd
 687 application/x-msterminal            trm
 688 application/x-mswrite                wri
 689 application/x-netcdf                nc cdf
 690 application/x-pkcs12                p12 pfx
 691 application/x-pkcs7-certificates        p7b spc
 692 application/x-pkcs7-certreqresp            p7r
 693 application/x-rar-compressed            rar
 694 application/x-sh                sh
 695 application/x-shar                shar
 696 application/x-shockwave-flash            swf
 697 application/x-stuffit                sit
 698 application/x-stuffitx                sitx
 699 application/x-sv4cpio                sv4cpio
 700 application/x-sv4crc                sv4crc
 701 application/x-tar                tar
 702 application/x-tcl                tcl
 703 application/x-tex                tex
 704 application/x-texinfo                texinfo texi
 705 application/x-ustar                ustar
 706 application/x-wais-source            src
 707 application/x-x509-ca-cert            der crt
 708 application/x400-bp
 709 application/xcap-att+xml
 710 application/xcap-caps+xml
 711 application/xcap-el+xml
 712 application/xcap-error+xml
 713 application/xcap-ns+xml
 714 application/xenc+xml                xenc
 715 application/xhtml+xml                xhtml xht
 716 application/xml                    xml xsl
 717 application/xml-dtd                dtd
 718 application/xml-external-parsed-entity
 719 application/xmpp+xml
 720 application/xop+xml                xop
 721 application/xslt+xml                xslt
 722 application/xspf+xml                xspf
 723 application/xv+xml                mxml xhvml xvml xvm
 724 application/zip                    zip
 725 audio/32kadpcm
 726 audio/3gpp
 727 audio/3gpp2
 728 audio/ac3
 729 audio/amr
 730 audio/amr-wb
 731 audio/amr-wb+
 732 audio/asc
 733 audio/basic                    au snd
 734 audio/bv16
 735 audio/bv32
 736 audio/clearmode
 737 audio/cn
 738 audio/dat12
 739 audio/dls
 740 audio/dsr-es201108
 741 audio/dsr-es202050
 742 audio/dsr-es202211
 743 audio/dsr-es202212
 744 audio/dvi4
 745 audio/eac3
 746 audio/evrc
 747 audio/evrc-qcp
 748 audio/evrc0
 749 audio/evrc1
 750 audio/evrcb
 751 audio/evrcb0
 752 audio/evrcb1
 753 audio/evrcwb
 754 audio/evrcwb0
 755 audio/evrcwb1
 756 audio/g722
 757 audio/g7221
 758 audio/g723
 759 audio/g726-16
 760 audio/g726-24
 761 audio/g726-32
 762 audio/g726-40
 763 audio/g728
 764 audio/g729
 765 audio/g7291
 766 audio/g729d
 767 audio/g729e
 768 audio/gsm
 769 audio/gsm-efr
 770 audio/ilbc
 771 audio/l16
 772 audio/l20
 773 audio/l24
 774 audio/l8
 775 audio/lpc
 776 audio/midi                    mid midi kar rmi
 777 audio/mobile-xmf
 778 audio/mp4                    mp4a
 779 audio/mp4a-latm
 780 audio/mpa
 781 audio/mpa-robust
 782 audio/mpeg                    mpga mp2 mp2a mp3 m2a m3a
 783 audio/mpeg4-generic
 784 audio/ogg                    oga ogg spx
 785 audio/parityfec
 786 audio/pcma
 787 audio/pcmu
 788 audio/prs.sid
 789 audio/qcelp
 790 audio/red
 791 audio/rtp-enc-aescm128
 792 audio/rtp-midi
 793 audio/rtx
 794 audio/smv
 795 audio/smv0
 796 audio/smv-qcp
 797 audio/sp-midi
 798 audio/t140c
 799 audio/t38
 800 audio/telephone-event
 801 audio/tone
 802 audio/ulpfec
 803 audio/vdvi
 804 audio/vmr-wb
 805 audio/vnd.3gpp.iufp
 806 audio/vnd.4sb
 807 audio/vnd.audiokoz
 808 audio/vnd.celp
 809 audio/vnd.cisco.nse
 810 audio/vnd.cmles.radio-events
 811 audio/vnd.cns.anp1
 812 audio/vnd.cns.inf1
 813 audio/vnd.digital-winds                eol
 814 audio/vnd.dlna.adts
 815 audio/vnd.dolby.mlp
 816 audio/vnd.dts                    dts
 817 audio/vnd.dts.hd                dtshd
 818 audio/vnd.everad.plj
 819 audio/vnd.hns.audio
 820 audio/vnd.lucent.voice                lvp
 821 audio/vnd.ms-playready.media.pya        pya
 822 audio/vnd.nokia.mobile-xmf
 823 audio/vnd.nortel.vbk
 824 audio/vnd.nuera.ecelp4800            ecelp4800
 825 audio/vnd.nuera.ecelp7470            ecelp7470
 826 audio/vnd.nuera.ecelp9600            ecelp9600
 827 audio/vnd.octel.sbc
 828 audio/vnd.qcelp
 829 audio/vnd.rhetorex.32kadpcm
 830 audio/vnd.sealedmedia.softseal.mpeg
 831 audio/vnd.vmx.cvsd
 832 audio/vorbis
 833 audio/vorbis-config
 834 audio/wav                    wav
 835 audio/x-aiff                    aif aiff aifc
 836 audio/x-mpegurl                    m3u
 837 audio/x-ms-wax                    wax
 838 audio/x-ms-wma                    wma
 839 audio/x-pn-realaudio                ram ra
 840 audio/x-pn-realaudio-plugin            rmp
 841 audio/x-wav                    wav
 842 chemical/x-cdx                    cdx
 843 chemical/x-cif                    cif
 844 chemical/x-cmdf                    cmdf
 845 chemical/x-cml                    cml
 846 chemical/x-csml                    csml
 847 chemical/x-pdb                    pdb
 848 chemical/x-xyz                    xyz
 849 image/bmp                    bmp
 850 image/cgm                    cgm
 851 image/fits
 852 image/g3fax                    g3
 853 image/gif                    gif
 854 image/ief                    ief
 855 image/jp2
 856 image/jpeg                    jpeg jpg jpe
 857 image/jpm
 858 image/jpx
 859 image/naplps
 860 image/png                    png
 861 image/prs.btif                    btif
 862 image/prs.pti
 863 image/svg+xml                    svg svgz
 864 image/t38
 865 image/tiff                    tiff tif
 866 image/tiff-fx
 867 image/vnd.adobe.photoshop            psd
 868 image/vnd.cns.inf2
 869 image/vnd.djvu                    djvu djv
 870 image/vnd.dwg                    dwg
 871 image/vnd.dxf                    dxf
 872 image/vnd.fastbidsheet                fbs
 873 image/vnd.fpx                    fpx
 874 image/vnd.fst                    fst
 875 image/vnd.fujixerox.edmics-mmr            mmr
 876 image/vnd.fujixerox.edmics-rlc            rlc
 877 image/vnd.globalgraphics.pgb
 878 image/vnd.microsoft.icon
 879 image/vnd.mix
 880 image/vnd.ms-modi                mdi
 881 image/vnd.net-fpx                npx
 882 image/vnd.sealed.png
 883 image/vnd.sealedmedia.softseal.gif
 884 image/vnd.sealedmedia.softseal.jpg
 885 image/vnd.svf
 886 image/vnd.wap.wbmp                wbmp
 887 image/vnd.xiff                    xif
 888 image/x-cmu-raster                ras
 889 image/x-cmx                    cmx
 890 image/x-icon                    ico
 891 image/x-pcx                    pcx
 892 image/x-pict                    pic pct
 893 image/x-portable-anymap                pnm
 894 image/x-portable-bitmap                pbm
 895 image/x-portable-graymap            pgm
 896 image/x-portable-pixmap                ppm
 897 image/x-rgb                    rgb
 898 image/x-xbitmap                    xbm
 899 image/x-xpixmap                    xpm
 900 image/x-xwindowdump                xwd
 901 message/cpim
 902 message/delivery-status
 903 message/disposition-notification
 904 message/external-body
 905 message/global
 906 message/global-delivery-status
 907 message/global-disposition-notification
 908 message/global-headers
 909 message/http
 910 message/news
 911 message/partial
 912 message/rfc822                    eml mime
 913 message/s-http
 914 message/sip
 915 message/sipfrag
 916 message/tracking-status
 917 message/vnd.si.simp
 918 model/iges                    igs iges
 919 model/mesh                    msh mesh silo
 920 model/vnd.dwf                    dwf
 921 model/vnd.flatland.3dml
 922 model/vnd.gdl                    gdl
 923 model/vnd.gs.gdl
 924 model/vnd.gtw                    gtw
 925 model/vnd.moml+xml
 926 model/vnd.mts                    mts
 927 model/vnd.parasolid.transmit.binary
 928 model/vnd.parasolid.transmit.text
 929 model/vnd.vtu                    vtu
 930 model/vrml                    wrl vrml
 931 multipart/alternative
 932 multipart/appledouble
 933 multipart/byteranges
 934 multipart/digest
 935 multipart/encrypted
 936 multipart/form-data
 937 multipart/header-set
 938 multipart/mixed
 939 multipart/parallel
 940 multipart/related
 941 multipart/report
 942 multipart/signed
 943 multipart/voice-message
 944 text/calendar                    ics ifb
 945 text/css                    css
 946 text/csv                    csv
 947 text/directory
 948 text/dns
 949 text/enriched
 950 text/html                    html htm
 951 text/parityfec
 952 text/plain                    txt text conf def list log in
 953 text/prs.fallenstein.rst
 954 text/prs.lines.tag                dsc
 955 text/red
 956 text/rfc822-headers
 957 text/richtext                    rtx
 958 text/rtf
 959 text/rtp-enc-aescm128
 960 text/rtx
 961 text/sgml                    sgml sgm
 962 text/t140
 963 text/tab-separated-values            tsv
 964 text/troff                    t tr roff man me ms
 965 text/ulpfec
 966 text/uri-list                    uri uris urls
 967 text/vnd.abc
 968 text/vnd.curl
 969 text/vnd.dmclientscript
 970 text/vnd.esmertec.theme-descriptor
 971 text/vnd.fly                    fly
 972 text/vnd.fmi.flexstor                flx
 973 text/vnd.graphviz                gv
 974 text/vnd.in3d.3dml                3dml
 975 text/vnd.in3d.spot                spot
 976 text/vnd.iptc.newsml
 977 text/vnd.iptc.nitf
 978 text/vnd.latex-z
 979 text/vnd.motorola.reflex
 980 text/vnd.ms-mediapackage
 981 text/vnd.net2phone.commcenter.command
 982 text/vnd.si.uricatalogue
 983 text/vnd.sun.j2me.app-descriptor        jad
 984 text/vnd.trolltech.linguist
 985 text/vnd.wap.si
 986 text/vnd.wap.sl
 987 text/vnd.wap.wml                wml
 988 text/vnd.wap.wmlscript                wmls
 989 text/x-asm                    s asm
 990 text/x-c                    c cc cxx cpp h hh dic
 991 text/x-fortran                    f for f77 f90
 992 text/x-pascal                    p pas
 993 text/x-java-source                java
 994 text/x-setext                    etx
 995 text/x-uuencode                    uu
 996 text/x-vcalendar                vcs
 997 text/x-vcard                    vcf
 998 text/xml
 999 text/xml-external-parsed-entity
1000 video/3gpp                    3gp
1001 video/3gpp-tt
1002 video/3gpp2                    3g2
1003 video/bmpeg
1004 video/bt656
1005 video/celb
1006 video/dv
1007 video/h261                    h261
1008 video/h263                    h263
1009 video/h263-1998
1010 video/h263-2000
1011 video/h264                    h264
1012 video/jpeg                    jpgv
1013 video/jpeg2000
1014 video/jpm                    jpm jpgm
1015 video/mj2                    mj2 mjp2
1016 video/mp1s
1017 video/mp2p
1018 video/mp2t
1019 video/mp4                    mp4 mp4v mpg4
1020 video/mp4v-es
1021 video/mpeg                    mpeg mpg mpe m1v m2v
1022 video/mpeg4-generic
1023 video/mpv
1024 video/nv
1025 video/ogg                    ogv
1026 video/parityfec
1027 video/pointer
1028 video/quicktime                    qt mov
1029 video/raw
1030 video/rtp-enc-aescm128
1031 video/rtx
1032 video/smpte292m
1033 video/ulpfec
1034 video/vc1
1035 video/vnd.cctv
1036 video/vnd.dlna.mpeg-tts
1037 video/vnd.fvt                    fvt
1038 video/vnd.hns.video
1039 video/vnd.iptvforum.1dparityfec-1010
1040 video/vnd.iptvforum.1dparityfec-2005
1041 video/vnd.iptvforum.2dparityfec-1010
1042 video/vnd.iptvforum.2dparityfec-2005
1043 video/vnd.iptvforum.ttsavc
1044 video/vnd.iptvforum.ttsmpeg2
1045 video/vnd.motorola.video
1046 video/vnd.motorola.videop
1047 video/vnd.mpegurl                mxu m4u
1048 video/vnd.ms-playready.media.pyv        pyv
1049 video/vnd.nokia.interleaved-multimedia
1050 video/vnd.nokia.videovoip
1051 video/vnd.objectvideo
1052 video/vnd.sealed.mpeg1
1053 video/vnd.sealed.mpeg4
1054 video/vnd.sealed.swf
1055 video/vnd.sealedmedia.softseal.mov
1056 video/vnd.vivo                    viv
1057 video/x-fli                    fli
1058 video/x-ms-asf                    asf asx
1059 video/x-ms-wm                    wm
1060 video/x-ms-wmv                    wmv
1061 video/x-ms-wmx                    wmx
1062 video/x-ms-wvx                    wvx
1063 video/x-msvideo                    avi
1064 video/x-sgi-movie                movie
1065 x-conference/x-cooltalk                ice
mime.types
技术分享
 1 disabled=false
 2 group_name=group1
 3 bind_addr=10.143.92.61
 4 client_bind=true
 5 port=23000
 6 connect_timeout=30
 7 network_timeout=60
 8 heart_beat_interval=30
 9 stat_report_interval=60
10 base_path=/data/file/fdfs-storage-file
11 max_connections=2560
12 buff_size = 256KB
13 accept_threads=1
14 work_threads=4
15 disk_rw_separated = true
16 disk_reader_threads = 1
17 disk_writer_threads = 1
18 sync_wait_msec=50
19 sync_interval=0
20 sync_start_time=00:00
21 sync_end_time=23:59
22 write_mark_file_freq=500
23 store_path_count=1
24 store_path0=/data/file/fdfs-storage-data
25 subdir_count_per_path=256
26 tracker_server=10.143.92.61:22122
27 tracker_server=10.143.92.62:22122
28 log_level=info
29 run_by_group=fdfs
30 run_by_user=fdfs
31 allow_hosts=*
32 file_distribute_path_mode=0
33 file_distribute_rotate_count=100
34 fsync_after_written_bytes=0
35 sync_log_buff_interval=10
36 sync_binlog_buff_interval=10
37 sync_stat_file_interval=300
38 thread_stack_size=512KB
39 upload_priority=10
40 if_alias_prefix=
41 check_file_duplicate=0
42 file_signature_method=hash
43 key_namespace=FastDFS
44 keep_alive=0
45 use_access_log = false
46 rotate_access_log = false
47 access_log_rotate_time=00:00
48 rotate_error_log = false
49 error_log_rotate_time=00:00
50 rotate_access_log_size = 0
51 rotate_error_log_size = 0
52 log_file_keep_days = 0
53 file_sync_skip_invalid_record=false
54 use_connection_pool = false
55 connection_pool_max_idle_time = 3600
56 http.domain_name=
57 http.server_port=8888
storage.conf
技术分享
1 # <id>  <group_name>  <ip_or_hostname>
2 100001   group1  10.143.92.61
3 100002   group1  10.143.92.62
4 100003   group1  10.143.92.63
storage_ids.conf
技术分享
 1 disabled=false
 2 bind_addr=10.143.92.61
 3 port=22122
 4 connect_timeout=30
 5 network_timeout=60
 6 base_path=/data/fastdfs
 7 max_connections=12560
 8 accept_threads=1
 9 work_threads=4
10 store_lookup=0
11 store_server=0
12 store_path=0
13 download_server=0
14 reserved_storage_space = 20%
15 log_level=info
16 run_by_group=fdfs
17 run_by_user=fdfs
18 allow_hosts=*
19 sync_log_buff_interval = 10
20 check_active_interval = 120
21 thread_stack_size = 64KB
22 storage_ip_changed_auto_adjust = true
23 storage_sync_file_max_delay = 86400
24 storage_sync_file_max_time = 300
25 use_trunk_file = false 
26 slot_min_size = 256
27 slot_max_size = 16MB
28 trunk_file_size = 64MB
29 trunk_create_file_advance = false
30 trunk_create_file_time_base = 02:00
31 trunk_create_file_interval = 86400
32 trunk_create_file_space_threshold = 20G
33 trunk_init_check_occupying = false
34 trunk_init_reload_from_binlog = false
35 trunk_compress_binlog_min_interval = 0
36 use_storage_id = false
37 storage_ids_filename = storage_ids.conf
38 id_type_in_filename = ip
39 store_slave_file_use_link = false
40 rotate_error_log = false
41 error_log_rotate_time=00:00
42 rotate_error_log_size = 0
43 log_file_keep_days = 0
44 use_connection_pool = false
45 connection_pool_max_idle_time = 3600
46 http.server_port=8080
47 http.check_alive_interval=30
48 http.check_alive_type=tcp
49 http.check_alive_uri=/status.html
tracker.conf

 

启动tracker:fdfs_trackerd /etc/fdfs/tracker.conf

启动storage:fdfs_storaged /etc/fdfs/storage.conf

设置开机自启动

cat /data/fastdfs/logs/trackerd.log

 vim /etc/rc.local

运行fdfs_monitor查看storage服务器是否已经登记到tracker服务器

fdfs_monitor /etc/fdfs/storage.conf

 自启动

su - fastdfs -c “/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start”

su - fastdfs -c “/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start”

 

/usr/bin/fdfs_upload_file  /etc/fdfs/client.conf 12act.jpg

group1/M00/00/00/Co9cVVg9YpiAEPtzAAI_zj6nEUw318.jpg

测试

[root@test-1 ~]# fdfs_test /etc/fdfs/client.conf upload test.html 

This is FastDFS client test program v5.05

 

Copyright (C) 2008, Happy Fish / YuQing

 

FastDFS may be copied only under the terms of the GNU General

Public License V3, which may be found in the FastDFS source kit.

Please visit the FastDFS Home Page http://www.csource.org/ 

for more detail.

 

[2015-06-14 02:46:06] DEBUG - base_path=/tmp, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0, use_connection_pool=0, g_connection_pool_max_idle_time=3600s, use_storage_id=0, storage server id count: 0

 

tracker_query_storage_store_list_without_group: 

        server 1. group_name=, ip_addr=192.168.0.205, port=23000

        server 2. group_name=, ip_addr=192.168.0.206, port=23000

 

group_name=group1, ip_addr=192.168.0.206, port=23000

storage_upload_by_filename

group_name=group1, remote_filename=M00/00/00/wKgAzlV8em6Af8qBAAAADxtaRO466.html

source ip address: 192.168.0.206

file timestamp=2015-06-14 02:46:06

file size=15

file crc32=458900718

example file url: http://192.168.0.206/group1/M00/00/00/wKgAzlV8em6Af8qBAAAADxtaRO466.html

storage_upload_slave_by_filename

group_name=group1, remote_filename=M00/00/00/wKgAzlV8em6Af8qBAAAADxtaRO466_big.html

source ip address: 192.168.0.206

file timestamp=2015-06-14 02:46:06

file size=15

file crc32=458900718

example file url: http://192.168.0.206/group1/M00/00/00/wKgAzlV8em6Af8qBAAAADxtaRO466_big.html

 

 待确定

 注意,上述安装的路径在/usr/lib64/,但是FastDFS主程序设置的lib目录是/usr/local/lib,所以需要创建软连接如下

             ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
             ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
             ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
             ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so

 

fastdfs 集群配置

标签:frog   body   ges   xwindow   nec   github   rest   unit   taf   

原文地址:http://www.cnblogs.com/liyongsan/p/7071023.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!