Home > Backend Development > PHP Tutorial > Fastdfs+nginx---(1) Preparation before installation

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

WBOY
Release: 2016-07-29 09:06:57
Original
838 people have browsed it

1. gcc+Installation

1.1 Since fastdsf is implemented in c language, the gcc command is required during compilation to check whether the system has gcc installed. Check the command:

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

2. Install libevent

2.1 check command :ls -al /usr/lib | grep libevent, If it has been installed and the version is lower than

1.3

, use the command: rpm -e libevent --nodeps to uninstall 2.2 Install libevent,

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

tar

zxvf libevent-1.4.14b-stable. tar.gz Extract 2.2.1 Execute the installation command:

cd

libevent-1.4.14b-stable

./configure --prefix=/usr

m

ake

make instal

l

soft connection:

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

3. Installation pcre

You need to install the PCRE library before installing nginx

The latest download address ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

tar –zxvf pcre- 8.32.tar.gz, the decompression directory is: pcre-8.32Then enter cd pcre-8.32 to configure, compile and install configure./configure CompilemakeInstallmake installFour. Installzlib

tar -zxvf zlib-1.2.5.tar.gz

cd zlib-1.2.5

./configure makemakeinstall5. Install openSSL

library

Download page: http://www.openssl.org/source/

tar –zxvf openssl-1.0.0.tar.gz

, the decompression directory is: openssl-1.0.0Then go to cd openssl-1.0.0 to configure, compile, installconfigure./configure or ./configcompile makeinstall​​​ The above introduces Fastdfs+nginx---(1) Preparation before installation, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template