nginx's proxy_cache is the most cost-effective cache. My current configuration is LiteSpeed+nginx. I can refer to apache+nginx
to give dynamic content to LiteSpeed or apache for processing, and then use proxy_cache to reverse proxy. All cached on the hard disk, become static content, everyone knows how powerful nginx running static content, so you can run large PV in small memory.
But this will bring a problem, temporarily Think of one, that is, the website is very interactive, that is, there are a lot of guest messages, then you can't refresh the comments. The solution I chose is: the member who has logged in or the guest with the message cookie, does not cache or cache for 5 to 15 minutes. Refresh the page.
This is the cheapest and most practical website acceleration method, definitely not worse than Varnish...Varnish is a memory level cache, nginx is a hard disk. All static files, you can feel Is the memory read faster than the hard disk? Of course, if you are a stand-alone server and a large memory user, using Varnish is a good choice. This is the performance of money piled up...
ps, Nginx has another caching method, which is to use fastcgi _cache directly cache dynamic content, very simple configuration, lnmp can be, the method is basically the same as proxy_cache. But I feel no proxy_cache, I use fastcgi_cache (configuration is lnmp), the website load is 0.3-0.8, but proxy_cache (configuration is LiteSpeed+nginx) can stay mostly below 0.4.
First time when the basic network configuration is 1. Check the network mac address first[root@cento
I believe that many users who use Linux systems will feel that command line operations are faster th
In the era of Internet, the high availability of the network has always been a very critical part, n
process represents a running instance of a program that is the smallest unit of allocated resources.
Shell script recursive function - traverse each directory to operate
Save memory space Optimize Linux background service program
Data transfer on the link layer of the linux protocol stack - data transmission
Exclude Linux server failures with strace
CentOS installation GD library support
Fedora configuration problem under Fedora Linux
Modify the X-Cache in Squid's Header to Powered-By-LinuxTone
Read the port of the server terminal under CMD
How to set up network connection in Hyper-V virtual machine under Win8
How to uninstall Windows 7 under XP?
Win8.1 Update is easily overlooked details
Win7/Win8.1 upgrade Win10 official version of the FAQ collection
Advance experience Put on the gorgeous coat of Windows 8 for Win7
Win10 mouse pointer size and color setting method