比如要把内存划分60G给/usr/db作为内存文件系统
1.在/etc/rc.d/rc.local中加入
mkdir /dev/shm/db
mount --bind /dev/shm/db /usr/db
chmod 1777 /usr/db
2.在/etc/fstab中加入
tmpfs /dev/shm tmpfs size=61440m 0 0
搞定
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/79686/viewspace-1044084/ ,如需转载,请注明出处,否则将追究法律责任。