(1) Installing Nginx
1.: http://nginx.org/en/download.html, and unzip to the directory
2. Install the dependent package yum-y install pcre* yum-y Install openssl*
3. Implementation./configure--prefix=/usr/local/nginx
Compile Make,make Install (if the non-root user make and sudo make install separate the same, the other installation package is the same) 4. Create a soft link: # ln-s/USR/LOCAL/NGINX/SBIN/NGINX/USR/LOCAL/BIN/5. Enter the/usr/local/nginx/conf directory, establish the virtual host configuration directory, and import this directory into the nginx.conf
# mkdir Vhost
# Vim./nginx.conf (add a row before the last curly brace and save the exit: include vhost/*.conf; )
6. You can create a new virtual host profile within the Vhost directory, end With. conf, and refer to the server section in nginx.conf
(2) Install PHP:
1.:http://php.net/downloads.php
2. Install Dependency Pack: Yum-y install libxml2 libxml2-devel OpenSSL openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel L Ibmcrypt-devel
3. since CentOS is not libmcrypt, download the third-party source first
wget http://www.atomicorp.com/installers/atomic Sh./atomicYum install Php-mcrypt libmcrypt-devel4../configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysqli--with-iconv-- With-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-xml--disable-rpath--en Able-discard-path--enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization-- With-curl--enable-mbregex--enable-fastcgi--enable-fpm--enable-force-cgi-redirect--enable-mbstring--with-mcrypt --WITH-GD--enable-gd-native-ttf--with-openssl--with-mhash--enable-pcntl--enable-sockets--with-xmlrpc-- Enable-zip--enable-soap--without-pear--with-zlib--enable-pdo--with-pdo-mysql--enable-opcache5. Go to the PHP installation directory:
Cp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.conf
Cp/usr/local/php/etc/php-fpm.d/www.conf.default/usr/local/php/etc/php-fpm.d/www.conf
Modify www.conf below User=wwww,group=www
Last Ps-aux | grep php-fpm is ready to start.
(3) Installation composer
Curl-ss Https://getcomposer.org/installer | Php
To create a soft connection to PHP before executing this command, Ln-s/usr/local/php/bin/php/usr/local/bin
mv composer.phar /usr/local/bin/composer
(4)安装redis
CentOS Deployment Server (ii)