mount fastcgi_cache to memory tmpfs for Nginx

I need more speed on nginx, the speed faster than the disk is memory, so I create a tmpfs, and put all the cache file into it.

# mount -t tmpfs -o size=10G tmpfs /var/cache/nginx
# vim /etc/fstab
# tmpfs /var/cache/nginx tmpfs defaults,size=10G 0 0

Tags: