ubuntu安装Oracle过程中修改sysctl.conf报错解决方法

最近在ubuntu中安装oracle,按教程修改内核参数时报错如下:


sysctl: permission denied on key 'fs.aio-max-nr'
sysctl: permission denied on key 'fs.file-max'
sysctl: permission denied on key 'kernel.shmall'
sysctl: permission denied on key 'kernel.shmmax'
sysctl: permission denied on key 'kernel.shmmni'
sysctl: permission denied on key 'kernel.sem'
sysctl: permission denied on key 'net.ipv4.ip_local_port_range'
sysctl: permission denied on key 'net.core.rmem_default'
sysctl: permission denied on key 'net.core.rmem_max'
sysctl: permission denied on key 'net.core.wmem_default'
sysctl: permission denied on key 'net.core.wmem_max'


解决办法:

终端输入以下命令后再使用sysctl -p 更新参数即可

rm -f /sbin/modprobe 
ln -s /bin/true /sbin/modprobe

rm -f /sbin/sysctl 
ln -s /bin/true /sbin/sysctl



你可能感兴趣的:(ubuntu安装Oracle过程中修改sysctl.conf报错解决方法)