在某内部版面搜到lotusin一篇,和你提供的这个命令类似,还加了size。不知道写到/etc/fstab里面怎么写的,有人能指点一下么?
以下为转载lotusin一文
<<<<<<<<<<<<<<<<<<<<<<<<<<<
此文档未经验证,不正确请指出
使用TMPFS来加速SMTH BBS的访问
TMPFS文档请参见
http://www-900.ibm.com/developerWorks/cn/linux/filesystem/l-fs3/index.shtml
1. 在site/里的站点定义头文件里定义
#define USE_TMPFS 1 /*使用内存文件系统加速 */
#define TMPFSROOT "cache" /*tmpfs的根在bbshome/cache */
重新编译安装代码
2. 在rc.local里加入(128M数字以及 /home/bbs 等目录请根据实际情况决定)
mount tmpfs /home/bbs/cache -t tmpfs -o size=128M
【 在 JulyClyde (七月) 的大作中提到: 】
: mount -t tmpfs none $BBSHOME/cache
--
FROM 135.252.214.*