LNMP difference with the LAMP

The first letter of the name of free software and LNMP LAMP is a set of commonly used together to run dynamic Web sites or servers abbreviation

lamp stands linux + apache + mysql + php

lnmp stands for linux + nginx + mysql + php (referred to as the foreign like LEMP, search for information in English need to search LEMP)

LAMP:

Using Apache, Apache is the world's number one Web server software, which can operate on almost all computer platforms widely used because of its cross-platform security and is widely used, is the most popular Web server software one.

LNMP:

Using Nginx, Nginx is a high-volume Http server and reverse proxy, also an AMAP / POP3 / SMTP server, Nginx by Igor Sysoev of Russia visited the second site development Rambler.ru, the first public version 0.1.0 was released in 2004 October 4, June 1, 2011, nginx 1.0.4 release.

 

Extended Information:

1, the advantages LNMP way: VPS occupied fewer resources, Nginx configuration also relatively simple to dynamically parse PHP script using the fast-cgi way. Disadvantages: limited load capacity php-fpm component in the huge amount of access time, php-fpm dead easy process, prone to error 502 bad gateway.

2, based on LAMP architecture with low cost, flexible deployment, rapid development, security and stability and other characteristics, is an excellent combination of Web applications and network environments. If the server configuration is relatively low personal website, of course, preferred LNMP architecture. Of course, the large flow of time. The Apache and Nginx used in combination, it would be a good choice.

 

Nginx characteristics

Nginx stable performance, feature-rich, operation and maintenance simple, static files faster and consumes very little system resources.

1, compared to Apache, Nginx as a Web server: use fewer resources to support more concurrent connections and more efficient.

2, as a load balancing server: Nginx can directly support Rails and PHP internally, can also be supported as an HTTP proxy server in foreign service. Nginx written in the C, regardless of the system or CPU resource consumption efficiency is much better than Perlbal.

3, as a mail proxy server: Nginx is also a very good mail proxy server (one of the earliest development of this product purpose, as a mail proxy server).

4, the reverse proxy may request url steering clusters for different uses, such as image request, the server cluster steering image; video request, the video server cluster turned. nginx is a lightweight web server / reverse proxy server / e-mail proxy server, installation is very simple, very simple configuration file (also supports perl syntax). Nginx supports smooth load the new configuration, the software version can also upgrade without interruption of service.

Apache properties

1, Apache LAMP architecture is the core of Web Server, open source, stable, rich module is Apache advantage. But Apache drawback is bloated, large memory and CPU overhead, there is loss of performance, as some of the lightweight Web server (such as: Nginx, Tengine etc.) efficient, lightweight Web server capabilities for response to static files That far higher than the Apache server.

2, Apache Web Server as the load PHP is the best choice, if a lot of traffic, then, Nginx Web request can be used to load non-PHP. Nginx is a high-performance HTTP server and reverse proxy server, Nginx its stability, rich feature set, simple configuration files and low system resource consumption is known. Nginx now supports PHP and FastCGI, also supports load balancing and fault tolerance, and can be used in conjunction with Apache is the preferred lightweight HTTP server.

3, Web server cache also has a variety of programs, Apache provides its own cache module, you can use the additional Squid module cache, these two methods can effectively improve Apache's access responsiveness. Squid Cache is a Web cache server, support efficient caching can be used as pre-cache server cache web server related requests to increase the speed of the Web server. Squid on the front end of the Apache Web server to cache dynamically generated content, and Web applications only need to appropriately set the effective time to the page. Such as access to a huge amount, consider using memcache as a distributed cache.

4, PHP acceleration can be used eAccelerator accelerator, eAccelerator is a free open source PHP accelerator. It will optimize the dynamic content caching, caching PHP scripts to improve performance, the PHP script in a compiled state, overhead to the server almost completely eliminated. It can also be optimized for the script from the role in order to speed up the efficiency of its implementation. The PHP code execution efficiency can be increased 1-10 times.

As for the installation which is good?

To save memory, then lnmp it is the best choice, but it seems not very stable, sometimes more often 502

Static multi lnmp is good

Dynamic content many words, lamp or the most stable

Common web server software introduced

  • Apache

Apache is the world's number one use of Web server software. It can run on almost any computer platform widely used. Apache server from NCSAhttpd, after several revisions, has become one of the world's most popular Web server software. Apache is taken from "a patchy server" pronunciation, meaning full patch server, because it is free software, so people keep coming for it to develop new features, new features, modify the original defect. Apache is characterized by simple, fast, stable performance, and can do a proxy server to use.
Characterized by processing php page, you need to perform the content can be used too much php apache, if the static content and more can be nginx.

  • IIS

IIS is the abbreviation of Internet Information Server, translated into Chinese is "Internet Information Services" means. It is Microsoft's main push server, the latest version is contained inside Windows2016 IIS 10, IIS with Window Server is fully integrated, so users can take advantage of Windows Server and NTFS (NT File System, NT file system) built-in security features to build powerful, flexible and secure Internet and Intranet sites.
windows server of choice, good stability. The site needs to support asp, asp.net iis on the need to use the

  • Nginx

Nginx is not only a compact and efficient HTTP server, you can also do a reverse proxy load balancing and efficient, can greatly improve concurrency by Rails application that accepts user requests and distribute to multiple Mongrel processes.

  • Tomcat

Tomcat is a core project of the Apache Software Foundation (Apache Software Foundation) in Jakarta project by the Apache, Sun and other companies and individuals to develop from. Thanks to Sun's involvement and support, the latest Servlet and JSP specifications can always be reflected in Tomcat. Because Tomcat advanced technology, stable performance, and it's free, so loved by fans of Java and has been recognized by some software developers become more popular Web application server.

  • GFE

Google's web server, the surge in the number of users. Currently tight iis.

  • Lighttpd

Lighttpd by German Jan Kneschke leadership development, based on the BSD open-source license WEB server software, its fundamental purpose is to provide a dedicated web server environment for high-performance Web site, safe, fast, good compatibility and flexibility. Has the characteristics of very low memory overhead, CPU occupancy rate is low, good performance, and a wealth of modules. Lighttpd is one of many OpenSource lightweight web server in one of the more outstanding. Support FastCGI, CGI, Auth, Output compression (output compress), URL rewriting, Alias ​​and other important functions.

  • Zeus

Zeus is a run on the Unix under the excellent Web Server, is said to outperform Apache, the Web Server is one of the highest efficiency.

  • Sun

Sun's Java System Web server that is before the Sun ONE Web Server. Mainly in those running on Sun's Solaris operating system is mission-critical Web server. Its latest version is 6.1, can support the x86 version of Solaris, Red Hat Linux, HP-UX 11i, IBM AIX, and even support for Windows, but most of its users have opted for SPARC version of the Solaris operating system.

  • Jetty

Jetty is an open source servlet container that is Java-based web content such as JSP and servlet to provide operating environment. Jetty is written in the Java language, its API released as a set of JAR packages. Developers may be instantiated as an object Jetty container, and can quickly provide a network connection to a number of independent web run (stand-alone) Java application.

Published 65 original articles · won praise 101 · views 90000 +

Guess you like

Origin blog.csdn.net/qq_40563761/article/details/104508804