zoukankan      html  css  js  c++  java
  • sysctl.conf

    # Kernel sysctl configuration file for tinux
    #
    # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
    # sysctl.conf(5) for more details.

    # Controls IP packet forwarding
    net.ipv4.ip_forward = 0

    # Controls source route verification
    net.ipv4.conf.default.rp_filter = 1

    # Do not accept source routing
    net.ipv4.conf.default.accept_source_route = 0

    # Controls the System Request debugging functionality of the kernel

    # Controls whether core dumps will append the PID to the core filename.
    # Useful for debugging multi-threaded applications.
    kernel.core_uses_pid = 1

    # Controls the use of TCP syncookies
    net.ipv4.tcp_syncookies = 1

    # Disable netfilter on bridges.
    # Follow 3 settings only for tlinux-xen(no bridge module in kernel default)
    #net.bridge.bridge-nf-call-ip6tables = 0
    #net.bridge.bridge-nf-call-iptables = 0
    #net.bridge.bridge-nf-call-arptables = 0

    # Controls the maximum size of a message, in

    bytes
    kernel.msgmnb = 65536


    # Controls the default maxmimum size of a mesage queue
    kernel.msgmax = 65536

    # Controls the maximum shared segment size, in bytes
    #kernel.shmmax = 4294967295

    # Controls the maximum number of shared memory segments, in pages
    #kernel.shmall = 268435456

    # Controls the console_loglevel for dmesg by tlinux team <t_os@tencent.com>
    kernel.printk = 2

    # disable ipv6 default by tlinux team <t_os@tencent.com>

    net.ipv4.conf.all.promote_secondaries = 1
    net.ipv4.conf.default.promote_secondaries = 1
    net.ipv6.neigh.default.gc_thresh3 = 4096
    net.ipv4.neigh.default.gc_thresh3 = 4096

    kernel.softlockup_panic = 1
    kernel.sysrq = 1
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    vm.overcommit_memory = 1
    kernel.numa_balancing = 0
    kernel.shmmax = 68719476736
    net.ipv4.tcp_tw_recycle = 0

  • 相关阅读:
    node03- NODE入门
    node02- NPM的使用
    node01- 初识、特点、
    Linux中的split命令,文件切割
    修改jar包中文件
    ByteBuf 使用
    Stream的flatmap与map异同的理解
    h5底部输入框被键盘遮挡问题
    div给我画条龙
    contains 了解
  • 原文地址:https://www.cnblogs.com/gao88/p/9843925.html
Copyright © 2011-2022 走看看