/etc/sysctl.conf 用于控制内核相关的配置参数,而且它的内容全部是对应于 /proc/sys/ 这个目录的子目录及文件

[root@localhost ~]$ ll /proc/sys
total 0
dr-xr-xr-x 1 root root 0 Dec 25 11:38 abi # 应用的二进制信息
dr-xr-xr-x 1 root root 0 Dec 25 11:38 debug # 调试相关的系统配置目录
dr-xr-xr-x 1 root root 0 Dec 25 11:38 dev # 设备相关的系统配置目录
dr-xr-xr-x 1 root root 0 Dec 14 16:19 fs # 文件系统相关的系统配置目录
dr-xr-xr-x 1 root root 0 Dec 14 16:20 kernel # 内核相关的系统配置目录
dr-xr-xr-x 1 root root 0 Dec 14 16:20 net # 网络相关的系统配置目录
dr-xr-xr-x 1 root root 0 Dec 25 11:38 user # 用户相关的系统配置目录
dr-xr-xr-x 1 root root 0 Dec 21 11:36 vm # 内存相关的系统配置目录

常用配置如下,配置的说明参考:https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt

# Network Settings
net.ipv4.conf.all.promote_secondaries = 1
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.ip_forward = 0
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv4.tcp_syncookies = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.neigh.default.gc_thresh3 = 4096
net.bridge.bridge-nf-call-arptables = 0
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0 # Kernel Settings
kernel.core_uses_pid = 1
kernel.msgmax = 65536
kernel.msgmnb = 65536
kernel.numa_balancing = 0
kernel.printk = 5
kernel.shmmax = 68719476736
kernel.softlockup_panic = 1
kernel.sysrq = 1

最新文章

  1. Unity NGUI添加UIRoot
  2. Qt qml 单例模式
  3. WAMPP安装后mysql无法启动
  4. [转](一)unity4.6Ugui中文教程文档-------概要
  5. Windows 下动态链接库和静态链接库
  6. 【AngularJS学习笔记】02 小杂烩及学习总结
  7. Price List
  8. C++中int *p[4]和 int (*q)[4]的区别
  9. To follow the path
  10. web.config配置详细说明
  11. Educational Codeforces Round 7 F - The Sum of the k-th Powers 拉格朗日插值
  12. 第一章 USB Type C的基本原理
  13. python3中文字符编码问题
  14. 如何使用jconsole(英文)
  15. iOS开发打电话的功能
  16. Hibernate2---- 查询单条记录
  17. 进程互斥(锁)------------------>一个坑
  18. Linux 文件系统IO性能优化【转】
  19. python3+requests库框架设计08-发送邮件
  20. python多线程应用——DB2数据库备份

热门文章

  1. python URLObject url处理模块
  2. <a>设置长宽
  3. excel保存时出现“请注意,您的文档的部分内容可能包含了文档检查器无法删除的个人信息”
  4. ios NSString format 保留小数点 float double
  5. 获取本地IP和mac等信息
  6. DateTime获取一个月的第一天和最后一天
  7. 常用PHP文件操作函数
  8. VMware提示:已将该虚拟机配置为使用 64 位客户机操作系统。但是,无法执行 64 位操作。解决方案
  9. VHD和VHDX
  10. VS2013环境生成和调用DLL动态链接库