Thanks, at least it helps me.
Danny Trinh
Linux Admin
-----Original Message-----
From: AMP Admin [mailto:admin@ampprod.com]
Sent: Monday, February 01, 2010 10:06 AM
To: nginx@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@nginx.org
http://nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx