FASTDFS Multi-server multi-disk configuration tutorial for centos6.5 system (1/3)

Source: Internet
Author: User
Tags gettext automake

Before the text, thank happy_fish100 for the Fastdfs, lightweight Distributed File server.
With the increase in the number of users, pictures, video and so on the volume will continue to grow, this time a hard disk may not be used, it is necessary to add hard disk. When the hard drive is not added, the server will be added. The same set of servers, file server things are the same, different groups of servers, there are different files, different groups, together to form the file server all content.
Next, the installation configuration process, the method of configuration here, root developer provides the method is not the same, I did not use Fastdfs-nginx-module, through the configuration Nginx realized the Fastdfs-nginx-module function.
One, Fastdfs download
Address: http://sourceforge.net/projects/fastdfs/files/FastDFS%20Server%20Source%20Code/
Second, server, and system
I used the CentOS 6.5 x86_64, Fastdfs v5.01 architecture as follows:

Here the tracker is a single point, if the fault is depressed, had done once more tracker, but the version is older. Please refer to: FASTDFS multi-server configuration
Third, install Fastdfs and Nginx
1, install Nginx

The code is as follows Copy Code
installation, gcc,automake,autoconf and other dependent packages
[Root@localhost download]$ yum install gettext gettext-devel libxft libxft-devel libxpm libxpm-devel
Automake autoconf libxtst-devel gtk+-devel gcc zlib-devel libpng-devel gtk2-devel glib-devel

Install Fastdfs
[Root@localhost download]# tar zxf fastdfs_v5.01.tar.gz
[Root@localhost download]# CD Fastdfs
[Root@localhost download]#./make.sh
[Root@localhost download]#./make.sh Install

The installation was successful with the following contents
[Root@localhost fdfs]# ll/usr/local/bin/|grep Fdfs
-rwxr-xr-x 1 root 522870 July 4 03:20 fdfs_appender_test
-rwxr-xr-x 1 root 522823 July 4 03:20 fdfs_appender_test1
-rwxr-xr-x 1 root 513975 July 4 03:20 fdfs_append_file
-rwxr-xr-x 1 root 513393 July 4 03:20 FDFS_CRC32
-rwxr-xr-x 1 root 513927 July 4 03:20 fdfs_delete_file
-rwxr-xr-x 1 root 514329 July 4 03:20 fdfs_download_file
-rwxr-xr-x 1 root 514093 July 4 03:20 fdfs_file_info
-rwxr-xr-x 1 root 525024 July 4 03:20 fdfs_monitor
-rwxr-xr-x 1 root 1179642 July 4 03:20 fdfs_storaged
-rwxr-xr-x 1 root 529805 July 4 03:20 fdfs_test
-rwxr-xr-x 1 root 527726 July 4 03:20 fdfs_test1
-rwxr-xr-x 1 root 655761 July 4 03:20 fdfs_trackerd
-rwxr-xr-x 1 root 514173 July 4 03:20 Fdfs_upload_appender
-rwxr-xr-x 1 root 514951 July 4 03:20 fdfs_upload_file

2, install Nginx

The code is as follows Copy Code
[Root@localhost fdfs]# Yum Install Nginx

The Fastdfs and Nginx installation methods are the same for all machines.
Four, configure the 192.168.10.219 server
1, configure tracker and storage

The code is as follows Copy Code
[Root@localhost fdfs]# vim/etc/fdfs/tracker.conf

port=22122 #设置tracker的端口号
Base_path=/var/www/fastdfs #设置tracker的数据文件和日志目录 (need to be created in advance)

If you want to tune,

The code is as follows Copy Code
[Root@localhost fdfs]# vim/etc/fdfs/storage.conf

Group_name=group1 #组名, modified according to the actual situation
port=23000 #设置storage的端口号
Base_path=/var/www/fastdfs #设置storage的日志目录 (need to be created in advance)
Store_path_count=1 #存储路径个数, need to match the number of Store_path
Store_path0=/var/www/fastdfs #存储路径
tracker_server=192.168.10.219:22122 #tracker服务器的IP地址和端口号

home 1 2 3 last

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.