CentOS Deployment Server (ii)

Source: Internet
Author: User

(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)

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.