Compare the difference between LNMP and Lnamp

Source: Internet
Author: User
For many of the students familiar with the VPS, after the launch of the VPS, the first thing to do is to build a server environment. In order to save trouble, convenient, online has a popular one-click installation package. At present, there are two kinds of roughly popular: Lnmp and Lnamp.

LNMP is a combination of linux+nginx+mysql+php, characterized by the use of Nginx's fast and lightweight, replacing the previous lamp (linux+apache+mysql+php) way. Because the installation is convenient, and the installation script is updated at any time, LNMP becomes the preferred one-click installation package for many webmasters.

Lnmp the advantages of the way: Occupy less VPS resources, Nginx configuration is relatively simple, using the fast-cgi way to dynamically parse PHP script.

The disadvantage of Lnmp way: PHP-FPM component load capacity is limited, when the traffic is huge, php-fpm process easily zombie, prone to 502 bad gateway error.

Lnamp is a combination of linux+nginx+apache+mysql+php, which is characterized by the use of Nginx as a static script parsing, and the use of Nginx forwarding features, the dynamic script parsing to the Apache to deal with, so, Can make full use of the characteristics of the two Web servers, for the traffic needs of a large site, is a very good choice.

Advantages of Lnamp: Because Apache itself is better at handling PHP than PHP-FPM, it is not easy to have errors similar to 502 bad Gateway. Suitable for sites with large traffic.

The disadvantage of Lnamp way: Compared to the LNMP way will occupy some resources, in addition, the configuration of virtual host needs to modify nginx and Apache configuration files, a little more trouble.

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.