ubuntu sysctl.conf net.core nofile

Ubuntu 20.04.4 

修改系统的文件描述符限制
设置网络接收缓冲区

Configuring open file limits UDP buffe

echo "* soft nofile 32000000" >> /etc/security/limits.conf
echo "* hard nofile 128000000" >> /etc/security/limits.conf
echo "fs.nr_open=128000000" >> /etc/sysctl.conf
echo "fs.file-max=128000000" >> /etc/sysctl.conf
echo "net.core.rmem_max=2097152" >> /etc/sysctl.conf
echo "net.core.rmem_default=209715" >> /etc/sysctl.conf
sysctl -p

参考

  1. Linux performance optimization
  2. System Configuration

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-04-22 01:50:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-22 01:50:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-22 01:50:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-22 01:50:01       18 阅读

热门阅读

  1. SpringSecurity集成JWT

    2024-04-22 01:50:01       13 阅读
  2. 【微服务】Hystrix的概念、作用以及使用方法

    2024-04-22 01:50:01       13 阅读
  3. find和grep查找搜索命令常用的一些使用方式

    2024-04-22 01:50:01       11 阅读
  4. 2024-04-15 问AI: 在深度学习中,什么是过拟合?

    2024-04-22 01:50:01       16 阅读
  5. mysql笔记(二进制安装+使用+多实例)

    2024-04-22 01:50:01       14 阅读
  6. ORACLE错误提示概述

    2024-04-22 01:50:01       12 阅读