修改linux资源限制

2019-03-02 01:03|来源: 网路

vi /etc/security/limits.conf

root            soft    nofile          4096
root            hard    nofile          65536
root            soft    noproc          2047
root            hard    noproc          16384
root            soft    stack           10240
root            hard    stack           32768

oracle          soft    nofile          4096
oracle          hard    nofile          65536
oracle          soft    noproc          2047
oracle          hard    noproc          16384
oracle          soft    stack           10240
oracle          hard    stack           32768
 
重启系统资源生效To check resource limits:
  1. Log in as an installation owner.

  2. Check the soft and hard limits for the file descriptor setting. Ensure that the result is in the recommended range. For example:

    $ ulimit -Sn
    4096
    $ ulimit -Hn
    65536
    
  3. Check the soft and hard limits for the number of processes available to a user. Ensure that the result is in the recommended range. For example:

    $ ulimit -Su
    2047
    $ ulimit -Hu
    16384
    
    
  4. Check the soft limit for the stack setting. Ensure that the result is in the recommended range. For example:

    $ ulimit -Ss
    10240
    $ ulimit -Hs
    32768
    
  5. Repeat this procedure for each Oracle software installation owner.

 
欢迎大家加入我们微信:hysoft0306,分享更多信息:


转自:http://www.cnblogs.com/iyunzhe/p/3862742

相关问答

更多
  • 22端口是ssh服务用的,一般没人会改它的,如果你一定要改, 可以修改系统 ssh_config 文件 (在 /etc/ssh_config,或者 /etc/ssh/ssh_config, 你可以 man ssh_config 来看你的系统上ssh_config在哪里 然后加入 Port 1000 然后再重启ssh服务,就把ssh服务端口改成1000了。
  • 如果你是装的虚拟机Linux 就要安装好VMware tool,这里就可以直接把windows的东西拖进来和托出去了,没有什么难度,先在各安装包,你没有可以传你,然后解压tar -zxcf 文件 cd 解压后的目录,make;make install就可以按照他的提示直接安装 然后设置好你的samba服务,基本就可以实现和windows的文件共享。
  • 没有办法“http://www.digrj.com/xunlei.php“这个我都试过,是不行的。
  • Linux上只能通过查看文件是哪个用户修改的,然后再看看这个用户是从哪个IP登录的。因为Linux中的文件是和用户相对应的,而不是和哪个IP地址相对应,所以直接查看修改文件的IP不太可能。
  • Linux-如何修改IP[2022-04-28]

    ifconfig linux中对网卡进行编辑的命令. 无论是Linux 自动安装还是我们手工安装,Linux 都会向你询问有关网络的问题并配置相关的软件。这个用于配置网卡的基本命令就是ifconfig。 在执行ifconfig 命令后,系统将在内核表中设置必要的参数,这样Linux 就知道如何与网络上的网卡通信。ifconfig 命令有以下两种格式: ※ifconfig [interface] ※ifconfig interface [aftype] option | address … ifco ...
  • 资源?? 如果是文档资源的话,上官网找, Ubuntu就上Ubuntu的官网 Fedora就上Fedora的官网 gentoo就上gentoo的官网 archlinux就上archlinux的官网 slackware就上slackware的官网
  • 修改用户密码 当我们的linux用户密码忘记后,无法进入时不要着急这里参考马哥的解决方式 1)首先重启我们的系统,然后马上反复按上下键就会进入这样的一个界面 2)然后按一下e键,进入下一个界面 3)找到这个以linux16开头的这段,从末尾删到ro,然后改成rw rd.break(记住rd后面有个点,不要忘记) 4)然后按ctrl+x就跳转到下一个界面,按以下回车键 5)然后输入chroot /sysroot/,然后再回车 6)输入passwd,就会让你输入新密码,回车后再次输入新密码,然后按两次exit, ...
  • anon_root=/(目录地址) <---匿名用户 local_root=/(目录地址) <---本地用户 你可以在vsftpd.conf内查看
  • Linux-如何修改IP[2022-06-17]

    ifconfig linux中对网卡进行编辑的命令. 无论是Linux 自动安装还是我们手工安装,Linux 都会向你询问有关网络的问题并配置相关的软件。这个用于配置网卡的基本命令就是ifconfig。 在执行ifconfig 命令后,系统将在内核表中设置必要的参数,这样Linux 就知道如何与网络上的网卡通信。ifconfig 命令有以下两种格式: ※ifconfig [interface] ※ifconfig interface [aftype] option | address … ifconfig ...
  • 右 ctrl 应该是 virtualbox 吧? 可以设置这个按键为别的。