: 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.