proxy_cache ramdisk
Danny Trinh
dtrinh at eastonbellsports.com
Mon Feb 1 19:13:24 MSK 2010
Thanks, at least it helps me.
Danny Trinh
Linux Admin
-----Original Message-----
From: AMP Admin [mailto:admin at ampprod.com]
Sent: Monday, February 01, 2010 10:06 AM
To: nginx at nginx.org
Subject: RE: proxy_cache ramdisk
Oh and I added the following to the nginx startup script so it will
always create the ram drives if they don't already exsist when nginx
starts. Not sure if that helps anyone else or not.
Obviously change the path and name to your config. This is a centos
box.
start() {
if /bin/mount | grep temp_cache ; then
echo "is mounted"
else
echo "Mounting nginx Temp Cache"
mount -t tmpfs none /etc/nginx/temp_cache -o size=128m
fi
if /bin/mount | grep nginx_cache ; then
echo "is mounted"
else
echo "Mounting Nginx Cache"
mount -t tmpfs none /etc/nginx/nginx_cache -o size=128m
fi
_______________________________________________
nginx mailing list
nginx at nginx.org
http://nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list