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:

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.