每次我用下面的命令安装一个ramdisk,我得到两个而不是一个ramdisk?
mount -t tmpfs -o size=1024M tmpfs /home/site/public_html/var/cache
Mount显示之前没有安装ramdisk,运行命令后显示:
tmpfs on /home/site/public_html/var/cache type tmpfs (rw,size=1024M) tmpfs on /home/site/public_html/var/cache type tmpfs (rw,size=1024M)
如果我卸载,两者都消失,重新装入时,都出现。
如果您的主目录中有一个绑定挂载,就会发生这种情况。
input这个:
mount | grep bind
你也可以检查/ etc / mtab的内容,但是我怀疑你会看到重复的条目。