Last updated on April 29th, 2020 at 08:44 am
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