Source code build LNMP environment for Web server architecture under RedHat5.4

Source: Internet
Author: User
I. In RedHat5.4, the source code of the Web server architecture is used to build the LNMP environment as a lightweight HTTP server. Compared with Apache, Nginx is compact and exquisite: in terms of performance, it occupies a small amount of system resources, supports more concurrent connections to achieve higher access efficiency. In terms of functions, Nginx is an excellent proxy server and Server Load balancer server. In the installation configuration, nginx is easy to install and flexible to configure. The LNMP environment is used to build Nginx + MySQL + PHP.1.1 in Linux.

I. Build the LNMP environment based on the source code of the Web server architecture in RedHat 5.4
As a lightweight HTTP server, Nginx is smaller and more sophisticated than Apache: in terms of performance, it occupies a small amount of system resources and supports more concurrent connections, nginx is an excellent proxy server and Server Load balancer server. Nginx is easy to install and flexible to configure. The LNMP environment is used to build Nginx + MySQL + PHP in Linux.

1.1 build a linux environment
Build a compiling group environment

Install redhat 5.4 in the English version of VMware 8. Select the following development components.

Legacy Software Development

X Software Development

Development Libraries

Development Tools

[Root @ shuiyong ~] # Uname-a # view the Linux environment

Linux shuiyong.shuiyong.com 2.6.18-164. el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux

1.2 preparations
Preparation 1: Disable FireWall and SeLinux (omitted)

Preparation 2: Build a local yum server (omitted)

Preparation 3: download the following software (stored in linux/lamp)

[Root @ shuiyong lnmp] # ls

Cmake-2.8.5.tar.gz mysql-5.0.75.tar.gz

Libevent-2.0.18-stable.tar.gz nginx-1.1.18.tar.gz

Libiconv-1.13.1.tar.gz nginx-1.2.0.tar.gz

Libmcrypt-2.5.8.tar.bz2 pcre-8.21.tar.gz

Mcrypt-2.6.8.tar.gz php-5.3.13.tar.bz2

Mhash-0.9.9.9.tar.bz2 php-5.4.0.tar.bz2

# Nginx has several dependent packages. First, install the dependent package. If an error is reported during installation, skip this step without affecting the normal running of nginx:

[Root @ shuiyong lnmp] # yum-y install zlib-devel pcre-devel openssl-devel

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.