Minimal installation of Linux CentOS-6.6 post-deployment Fastdfs + Download Address It's dry, dry.

Source: Internet
Author: User
Tags install perl

Reference: http://blog.itpub.net/7734666/viewspace-1292485/

Install some necessary software

Yum-y Install wget

Yum-y Install GCC

Yum-y Install Perl

mkdir ~/zy

CD ~/zy

Installation: Libfastcommon

Download:

wget https://codeload.github.com/happyfish100/libfastcommon/tar.gz/V1.0.7

Extract:

TAR-ZXVF V1.0.7

Enter the extracted directory

CD libfastcommon-1.0.7/

Execute command

./make.sh

./make.sh Install

So you need to create a soft link.

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

Cd..

Installing Fastdfs

Download

wget https://codeload.github.com/happyfish100/fastdfs/tar.gz/V5.05

Extract:

TAR-ZXVF V5.05

Execute the following command without explanation

CD fastdfs-5.05/

./make.sh

./make.sh Install

cd/etc/fdfs/

CP Tracker.conf.sample tracker.conf

vi/etc/fdfs/tracker.conf file, modify the following content

Base_path=/tracker

Save

Mkdir/tracker

Fdfs_trackerd tracker.conf

CP Storage.conf.sample storage.conf

Modify Content

Vi/etc/fdfs/storage.conf

Group_name=group1

Base_path=/storage

Store_path0=/storage

tracker_server=192.168.160.128:22122

Mkdir/storage

Fdfs_storaged storage.conf

(The actual operation is recommended to switch to another directory and then download)

Decompression Fastdfs-nginx-module

wget http://nchc.dl.sourceforge.net/project/fastdfs/FastDFS%20Nginx%20Module%20Source%20Code/ Fastdfs-nginx-module_v1.16.tar.gz

TAR-ZXVF fastdfs-nginx-module_v1.16.tar.gz

VI Fastdfs-nginx-module/src/config

Modify the config file for Fastdfs-nginx-module

The original content is

core_incs= "$CORE _incs/usr/local/include/fastdfs/usr/local/include/fastcommon/"

Vim/home/nginx/fastdfs-nginx-module/src/config, revision changed to

core_incs= "$CORE _incs/usr/include/fastdfs/usr/include/fastcommon"

Installing Nginx

wget http://nginx.org/download/nginx-1.9.5.tar.gz

Yum-y install gcc automake autoconf libtool make gcc-c++ pcre* zlib OpenSSL openssl-devel

Mkdir/home/nginx

TAR-ZXVF nginx-1.9.5.tar.gz

MV Fastdfs-nginx-module/home/nginx

CD nginx-1.9.5

./configure \
--prefix=/home/nginx/nginx-1.6.2 \
--sbin-path=/home/nginx/nginx-1.6.2/nginx \
--conf-path=/home/nginx/nginx-1.6.2/nginx.conf \
--pid-path=/home/nginx/nginx-1.6.2/nginx.pid \
--with-http_ssl_module \
--add-module=/home/nginx/fastdfs-nginx-module/src

Make-j ' Cat/proc/cpuinfo | grep processor| Wc-l ' && make install

Cp/home/nginx/fastdfs-nginx-module/src/mod_fastdfs.conf/etc/fdfs

Vi/etc/fdfs/mod_fastdfs.conf

Group_name=group1
tracker_server=192.168.160.128:22122
Store_path0=/storage
Base_path=/storage

CD ~/zy/fastdfs-5.05/conf

CP http.conf mime.types/etc/fdfs/

Cd/home/nginx/nginx-1.6.2/

VI nginx.conf

modifying Nginx configuration Files

location/m00 {

Root/storage;

Ngx_fastdfs_module;

}

cd/storage/

Ln-s data/m00

/home/nginx/nginx-1.6.2/nginx

Vi/etc/sysconfig/iptables

Add to

-A input-m state--state new-m tcp-p TCP--dport 80-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

Service Iptables Restart

Download

Libfastcommon

https://codeload.github.com/happyfish100/libfastcommon/tar.gz/V1.0.7

Fastdfs-nginx-module

Http://nchc.dl.sourceforge.net/project/fastdfs/FastDFS%20Nginx%20Module%20Source%20Code/fastdfs-nginx-module_v1.16.tar.gz

Fastdfs

https://codeload.github.com/happyfish100/fastdfs/tar.gz/V5.05

Nginx

Http://nginx.org/download/nginx-1.9.5.tar.gz

Minimal installation of Linux CentOS-6.6 post-deployment Fastdfs + very dry dry dry

Related Article

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.