: This article mainly introduces the common LNMP optimization. if you are interested in the PHP Tutorial, you can refer to it. Nginx
- Configuration 304;
- Enable zip;
- Parameter optimization;
- Reverse proxy cache;
- Reverse proxy for load balancing;
- CDN
Php
- Parameter optimization;
- Opcode;
- Use fastcgi_cache as appropriate;
- Code Optimization;
- Horizontal scaling: splitting business modules;
- Vertical scaling: The Splitting Process. Generally, the outer layer is PHP, and other languages are used internally. Various middleware
Shared Cache
- Memcached | redis;
- Parameter optimization;
- Distributed, cluster;
Db
- Parameter optimization;
- Optimize SQL statements;
- Horizontal | vertical table sharding;
- Sub-database;
- Distributed, cluster;
- Various middleware;
- Change the database, for example, mysql-> oracle
Hardware
- CPU;
- Memory;
- Raid10 | radi5;
- SSD;
- Minicomputers ...;
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes the commonly used LNMP optimization, including the content, hope to be helpful to friends who are interested in the PHP Tutorial.