使用tmpfs作为缓存加速缓存的文件目录

使用tmpfs作为缓存加速缓存的文件目录

[root@web02 ~]# mount -t tmpfs tmpfs /dev/shm -o size=256m
[root@web02 ~]# mount -t tmpfs /dev/shm/ /tmp/eaccelerator/
[root@web02 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3       6.6G  3.9G  2.5G  62% /
/dev/sda1       190M   36M  145M  20% /boot
tmpfs           256M     0  256M   0% /dev/shm
/dev/shm        238M     0  238M   0% /tmp/eaccelerator
posted @ 2016-12-21 10:47  howhy  阅读(290)  评论(0编辑  收藏  举报