Minimal deployment of fastdfs + download address after linux CentOS-6.6 Installation

Source: Internet
Author: User

Minimal installation of linux CentOS-6.6 after fastdfs +
Install necessary software yum-y install wget gcc perl mkdir ~ /Zy cd ~ /Zy install: libfastcommon download: wget https://codeload.github.com/happyfish100/libfastcommon/tar.gz/V1.0.7 unzip: tar-zxvf V1.0.7 enter the decompressed directory cd libfastcommon-1.0.7/execute the command. /make. sh. /make. sh install, so you need to create a soft link. ln-s/usr/lib64/libfastcommon. so/usr/local/lib/libfastcommon. soln-s/usr/lib64/libfastcommon. so/usr/lib/libfastcommon. soln-s/usr/lib64/libfdfsclient. so/usr/local/lib/libfdfsclient. soln-s/usr/lib6 4/libfdfsclient. so/usr/lib/libfdfsclient. so cd .. install FastDFS download wget https://codeload.github.com/happyfish100/fastdfs/tar.gz/V5.05 unzip: tar-zxvf V5.05 execute the following command does not explain cd fastdfs-5.05 /. /make. sh. /make. sh install cd/etc/fdfs/cp tracker. conf. sample tracker. conf vi/etc/fdfs/tracker. modify the following content in the conf file base_path =/tracker to save mkdir/tracker fdfs_trackerd tracker. conf cp storage. conf. sample storage. conf modification 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 cd ~ /Zy unzip 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 fastdfs-nginx-module the original content of the config file is CORE_INCS =" $ CORE_INCS/usr/local/include/fastdfs/usr/local/include/fastcommon/"vim/home/nginx/fastdfs-nginx-module/src/config, Change to CORE_INCS = "$ CORE_INCS/usr/include/fastdfs/usr/include/fastcommon" install 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-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 modify group_name = group1tracker_server = 192.168.160.128: 22122 Store_path0 =/storagebase_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: Modify the Nginx Configuration File location/M00 {root/storage; ngx_fastdfs_module ;} add-a input-m state -- state NEW-m tcp-p to cd/storage/ln-s data/M00/home/nginx/nginx-1.6.2/nginx vi/etc/sysconfig/iptables 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 ------------------------------------------------ restart linux and start the service fdfs_trackerd/etc/fdfs/tracker. conffdfs_storaged/etc/fdfs/storage. conf/home/nginx/nginx-1.6.2/nginx 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

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.