LAMP site architecture plan analysisLAMP (Linux-Apache-MySQL-PHP) website architecture is internationally popular Web framework that includes: Linux operating system, Apache web server, MySQL database, Perl, PHP or Python programming language, all the components are open source products software, is a mature architectural framework internationally, many popular business applications are taken by the architecture, and Java / J2EE architecture compared, LAMP Web resources with rich, lightweight, rapid development, and other characteristics, as compared to Microsoft's .NET architecture , LAMP has a common, cross-platform, high performance, low price advantage, thus LAMP whether it is performance, quality and price are the platform of choice for enterprises to build the site. For high-volume, high concurrency system architecture of the site, in addition to the use of high-performance server hardware on the outside, load balancing, CDN, etc., the need to focus on software architecture following several aspects: the use of high-performance operating system ( OS), high-performance web server (Web Server), high-performance database (Databse), highly efficient programming language. Here I will discuss each of these points it. Operating system Linux operating system, there are many different distributions, such as Red Hat Enterprise Linux, SUSE Linux Enterprice, Debian, Ubuntu, CentOS, etc., each release has its own characteristics, such as the stable RHEL, Ubuntu's ease of use, Stability and performance considerations, operating system selection CentOS (Community ENTerprise Operating System) is an ideal solution. CentOS (Community ENTerprise Operating System) is one of the Linux distributions, is RHEL / Red Hat Enterprise Linux streamlining free version, and RHEL for the same source code, however, RHEL and SUSE LE and other Enterprise Edition, upgrade services provided are upgrade fees not free online upgrade, thus requiring a high degree of stability of the free CentOS server can replace the use of Red Hat Enterprise Linux. LAMP website chart Web server, caching and acceleration Apache PHP LAMP architecture is the core of Web Server, open, stable, Apache module is the advantage of the rich. But the disadvantage is that some bloated Apache, memory and CPU overhead, there is loss of performance, as some of the lightweight Web server (such as nginx) efficient, lightweight Web server for static files responsiveness is much higher Air Jordan 5 than the Apache server. Apache Web Server is the best choice as a load PHP, if the traffic is heavy, you can use nginx to load non-PHP Web requests. nginx is a high-performance HTTP server and Air Jordan 22 reverse proxy server, Nginx to its stability, rich feature set, sample configuration files and low system resource consumption is known. Nginx does not support dynamic languages such as PHP and CGI, but supports load balancing and fault tolerance, and Apache can be used in conjunction with the preferred lightweight HTTP server. Web server's cache also has a variety of programs, Apache provides its own caching module, you can also use plus the Squid module cache, these two methods can be effectively improve access to Apache's ability to respond. Squid Cache is a Web caching server that supports efficient caching, can be used as pre-cache server cache web server related requests to increase the speed of Web server on the front end of the Squid Apache Web server to cache dynamically generated content, Web application only needs adequate time to set the page effectiveness. Such as access to a Latest Nike Air Force 1 High Unisex Black White Shoes huge amount, consider using memcache as a distributed cache. Accelerated use eAccelerator PHP accelerator, eAccelerator is a free open source PHP accelerator, optimization, and dynamic content caching, caching improves performance PHP script performance, making PHP scripts compiled in the state, the cost of the server almost completely eliminated. It is also optimized for the script plays role in accelerating its efficiency. Make PHP code execution efficiency can be increased 1-10 fold. Specific solutions are as follows: 1, squid + Apache + PHP + eAccelerator load using Apache PHP, using squid caching, request html or pictures can be returned directly to the user squid. Many large sites are using this architecture. 2, nginx / Apache + PHP (fastcgi) + eAccelerator using nginx or Apache load Latest Nike Air Force 1 High Unisex Black White Shoes PHP, PHP use fastcgi Authentic Nike Air Force 1 Unisex White Gold Shoes run, high efficiency. 3, nginx + Apache + PHP + eAccelerator This program combines the advantages of nginx and Apache, use Apache Nike Lunar Mens load PHP, nginx is responsible for resolving other Web requests, use nginx's rewrite module, Apache port is not open. Database open source database, MySQL in performance, stability and function is preferred, can reach one million level of data storage, the initial site can be put together MySQL and Web server, but when traffic reaches a certain size, it should be MySQL database independence out from the Web Server running on a separate server, while maintaining a stable connection Web Server or MySQL server. When the database reaches a greater level of access, consider using MySQL Cluster database and other database or table hash cluster solutions. Overall, LAMP architecture site performance will be far superior to Windows 2015 Latest Nike Shoes IIS + ASP + Access (such as moonlight blog) such sites, traffic can be supported is very large, a large number of domestic personal website if you want to support great access amount, using LAMP architecture is a good program. In summary, based on LAMP architecture with low cost, flexible deployment, rapid development, security and stability and other characteristics, it is an excellent combination of Web network applications and environments.