[root@localhost ~]# cat /etc/fstab | grep shm
tmpfs /dev/shm tmpfs defaults 0 0
[root@localhost ~]# df -h /dev/shm
Filesystem Size Used Avail Use% Mounted on
tmpfs 538M 0 538M 0% /dev/shm
[root@localhost ~]# vi /etc/fstab
如上图所示,55G为新指定大小。
# mount -o remount /dev/shm #重新挂载
# df -h /dev/shm