Fastdfs + nginx --- (1) preparations before installation

Source: Internet
Author: User
: This article mainly introduces Fastdfs + nginx --- (1) preparations before installation. if you are interested in the PHP Tutorial, refer to it. 1. install gcc +

1.1 because fastdsf is implemented in C language, the gcc command is required during compilation. check whether the system has installed gcc and the command is as follows:

Gcc-v

1.2 Installation Command:

Cd/usr/local/src/

Rpm-I libstdc ++ devel-4.4.7-3.el6.i686.rpm

Rpm-I gcc-c ++-4.4.7-3. el6.i686. rpm

II. install libevent

2.1 check whether libevent is installed in the system,

Check command: ls-al/usr/lib | grep libevent. if the version has been installed and is earlier than 1.3, run the command: rpm-e libevent -- nodeps to uninstall it.

2.2 install libevent,

2.2.1 Copy the libevent-1.4.14b-stable.tar.gz to the system path/usr/local/src/and run the following command:

Tar-zxvf libevent-1.4.14b-stable.tar.gz decompression

2.2.1 execute the installation command:

Cd libevent-1.4.14b-stable

./Configure -- prefix =/usr

Make

Make install

Soft connection:

Ln-s/lib/libpcre. so.0.0.1/lib/libpcre. so.1

3. install pcre

Install the latest ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/tar-zxvf pcre-8.32.tar.gz, unzip the directory to: pcre-8.32 and then enter the cd pcre-8.32 for configuration, compilation, installation configuration. /configure compile make to install make install

4. install zlib

Tar-zxvf zlib-1.2.5.tar.gzcd./configuremakemakeinstall

5. install the openSSL library

Download Page: http://www.openssl.org/source/tar-zxvf openssl-1.0.0.tar.gz, unzip Directory: openssl-1.0.0 and then go to the cd openssl-1.0.0 for configuration, compilation, installation configuration./configure or./config compile make installation

The above introduces Fastdfs + nginx --- (1) preparations before installation, including some content, hope to be helpful to friends who are interested in PHP tutorials.

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.