调整/dev/shm的大小
---------------------------------------------------------
1、查看大小
df -h /dev/shm
---------------------------------------------------------
如果是Oracle Enterprise Linux 6.0及以上版本系统,还需要修改:/etc/rc.d/rc.sysinit
1、注释如下语句
#mount -f /dev/shm >/dev/null2>&1
2、在rc.sysinit 中找到如下内容
# Mount all other filesystems (except forNFS and /proc, which is already
# mounted). Contrary to standard usage,
# filesystems are NOT unmounted in singleuser mode.
if [ "$READONLY" !="yes" ] ; then
action $"Mounting local filesystems: " mount -a -tnonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
else
action $"Mounting local filesystems: " mount -a -n -tnonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
fi
=====> 在该处添加如下部分内容
if [ "$READONLY" !="yes" ] ; then
action $"Mounting local filesystems: " mount -a -t tmpfs,nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -O no_netdev
else
action $"Mounting local filesystems: " mount -a -n -t tmpfs,nonfs,nfs4,smbfs,ncpfs,cifs,gfs,gfs2 -Ono_netdev
fi
3、重新启动系统
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30074459/viewspace-1876051/ ,如需转载,请注明出处,否则将追究法律责任。