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