Install and configure FastDFS in centos6.2

Source: Internet
Author: User
Install and configure FastDFS in centos6.2 system Step 1: install libevent (libevent-2.0.16-stable) uninstall built-in libeventrpm-qa | greplibeventrpm-elibevent * install FastDFS configuration under the Linux/home/ylhwge centos6.2 system for Trackerd and Storaged node nodes Step 1: install libevent (libevent-2.0.16-stable) uninstall the built-in libeventrpm-qa | grep libevent rpm-e libevent *. install libeventcd/home/ylh wget for the Trackerd and Storaged node nodes. 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 to the/lib library for libevent, 64-bit system/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 and enable WITH_HTTPD = 1 before compiling) 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 the storage directory mkdir/home/ylh/fastdfs to modify the configuration file. vim/etc/fdfs/tracker. after the conf file is modified, save and start Trackerd/usr/local/bin/fdfs_trackerd/etc/fdfs/tracker. conf 3: install FastDFS for the Storaged node, and the Storaged node also needs libevent. for the installation steps, see step 1 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 the web server for the Storaged node. the Storaged node can use nginx or apache to provide http download services. Nginx is used here. Cd/home/ylh wget http://nginx.org/download/nginx-0.8.55.tar.gz Tar zxvf nginx-0.8.55.tar.gz cd nginx-0.8.55./configure -- prefix =/opt/nginx -- with-httpstubstatus_module make & make install 5: install fastdfs-nginx-module cd/home/ylh wget for the Storaged node http://fastdfs.googlecode.com/files/fastdfs-nginx-module_v1.10.tar.gz Tar xzf fastdfsnginxmodule_v1.05.tar.gz cd/home/ylh/nginx-0.8.55. /configure -- add-module =/home/ylh/fastdfs-nginx-module/src make; make install 6: modify the nginx configuration file and save and exit (vim/usr/local/nginx/conf/nginx. conf) location/M00 {root/home/ylh/fastdfs/data; ngxfastdfsmodule;} 7: copy and modify the nginx module configuration file cp/home/ylh/fastdfs-nginx-module/src/mod_fastdfs.conf/etc/fdfs vim modify/etc/fdfs/mod_fastdfs.conf save and start nginx/usr /Local/nginx/sbin/nginx 8: modify the configuration file/etc/fdfs/storage of the Storaged node. conf, start Storaged to create the storage directory mkdir/home/ylh/fastdfs to modify the configuration vim/etc/fdfs/storage. after the conf file is modified, save and start Storaged/usr/local/bin/fdfs_storaged/etc/fdfs/storage. conf 9: Test and modify the client configuration file/etc/conf/client. conf file and save and exit test upload/usr/local/bin/fs_test/etc/conf/client. conf upload/home/a.jpg if the upload succeeds and the echo information contains the file url, enter the url address in the browser, and the tracker server will automatically redirect the file to the storage server where the file is downloaded. So far, FastDFS has been successfully set up.

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.