centos6 配置

Posted wljcom

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6 配置相关的知识,希望对你有一定的参考价值。

vim /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
重启生效


cat /proc/sys/fs/file-max

vim /etc/sysctl.conf
fs.file-max = 65536
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 3600
net.ipv4.ip_local_port_range = 1024 65000

























以上是关于centos6 配置的主要内容,如果未能解决你的问题,请参考以下文章

​centos6.5添加新网卡配置

CentOS6.7网卡的配置

CentOS6.10

CentOS6.5配置网易163做yum源

安装Centos6.9后配置网络

虚拟机下linux(CentOS6.7)网络配置