Detailed Nginx+php-5.4+mysql-5.5+memcached+redis Architecture Deployment

Source: Internet
Author: User
Tags curl memcached mkdir mysql openssl redis openldap dell r710

For the company to build a test structure, requirements and really close to the environment need to install Nginx, PHP, MySQL, memcached, redis!

But only to a R720 server, there is no way, can only run all on one stage

Server model: Dell R710

Memory: 4G

Operating system: CentOS 6.4

cpu:e5520

Individual Package Versions:

Nginx-1.2.1

Php-5.4.14

Mysql-5.5.29

Memcached-1.2.8

Redis-2.6.14

Install Nginx

Some dependency packs

1 Yum install-y gcc gcc-c++ makezlib zlib-devel pcre* libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel L IBXML2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2bzip2-devel ncurses ncurses-devel Curl Curl-devel e2fsprogs E2fsprogs-devel krb5 krb5-devel OpenSSL openssl-devel openldap openldap-devel nss_ldap openldap-clients Openldap-servers

1, installation

123 Tar zxf nginx-1.2.1.tar.gz

./configure--prefix=/usr/local/webserver/nginx/

Make && make install

2, start Nginx

1 #/usr/local/webserver/nginx/sbin/nginx

Install Mysql-5.5

1. Prepare

12345678 Groupadd MySQL

Useradd-r-G MySQL MySQL

Mkdir/usr/local/webserver/mysql

Mkdir-pv/usr/local/webserver/mysql/data

Chown mysql.mysql/usr/local/webserver/mysql/-R

Yum-y install gcc gcc-c++ ncurses-devel libtool openssl-devel bison-devel ncurses-devel libaio-devel

Tar zxf mysql-5.5.29.tar.gz

CD mysql-5.5.29

2. Install CMake First (Mysql-5.5 installation is different from previous version, need CMake compile)

1234 Tar zxf cmake-2.8.7.tar.gz

CD cmake-2.8.7

./configure

Make && make install

Related Article

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.