Installation and configuration method of CentOS6.2 system fastdfs
Steps to install and configure FastDFS under centos6.2 system: 1: Install libevent (libevent-2.0.16-stable) ## Uninstall system comes with libevent rpm -qa | grep libevent rpm -e libevent* ## Install libevent for Trackerd and Storaged nodes cd /home/ylh wget https://github.com/downloads/libevent/libevent/libevent-2.0.16-stable.tar.gz tar -zxvf libevent-2.0.16-stable.tar.gz cd libevent-2.0.16-stable make clean ./configure make && make install ##Create a soft link for libevent to the /lib library, 64-bit system corresponds to /lib64 ln -s /usr/local/lib/libevent* /lib/ ln -s /usr/local/lib/libevent* /lib64/ 2: Install FastDFS for the Trackerd node, and modify the configuration file /etc/fdfs/tracker.conf( If Trackerd needs to use the built-in web server, you need to modify the make file, enable WITH_HTTPD=1 and then compile) cd /home/ylh wget http://fastdfs.googlecode.com/files/FastDFS_v3.06.tar.gz tar -zxvf FastDFS_v3.06.tar.gz cd FastDFS_v3.06 ./make.sh ./make.sh install ##Create storage directory mkdir /home/ylh/fastdfs ##Modify the configuration file. vim /etc/fdfs/tracker.conf Save and exit after modification ## start trackerd /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf 3: Install FastDFS for the Storaged node, the Storaged node also needs libevent, see the first step for the installation steps cd /home/ylh wget http://fastdfs.googlecode.com/files/FastDFS_v3.06.tar.gz tar -zxvf FastDFS_v3.06.tar.gz cd FastDFS_v3.06 ./make.sh ./make.sh install 4: Install a web server for the Storaged node. The Storaged node can use nginx or apache to provide http download service. Here we choose nginx.…