TMPFS

Saltar a: navegación, buscar

Nota: Pendiente de ACTUALIZAR esta traducción respecto a la página original en inglés (ver enlace hacia English en el cuadro abajo a la derecha).     (otras páginas pendientes)

En Solaris:

/tmp is mounted swapfs and is it correct to put the eaccelerator files into /tmp/eaccelerator. You will have to remake the directory after a reboot.

En Ubuntu (Linux):

In linux tmpfs can be used in the same way as Solaris, either on /tmp or elsewhere.

mkdir /var/tmp/eaccelerator
sudo chown www-data.www-data /var/tmp/eaccelerator
sudo mount -t tmpfs tmpfs /var/tmp/eaccelerator

Now put it in your /etc/fstab:

tmpfs /var/tmp/eaccelerator tmpfs defaults 0 0

In your php.ini, change this line to:

eaccelerator.cache_dir="/var/tmp/eaccelerator"

And restart Apache:

sudo /etc/init.d/apache2 restart

You now don't have to recreate the /var/tmp/eaccelerator directory after the reboot, and the tmpfs will automount.

If you are VERY clever, then you might copy the cached files off of the tmpfs when apache stops and copy the cached files back on when apache starts.

Vea tambiéno: