天天看點

CentOS6.4 核心優化

vi /etc/sysctl.conf

kernel.sysrq = 0

kernel.core_uses_pid = 1

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 68719476736

kernel.shmall = 4294967296

vm.swappiness=10

這些配置來自大俠 撫琴煮酒

讓改動配置立即生效

修改ulimit

1.vi /etc/security/limits.conf

*        soft   nproc  65535

*        hard   nproc  65535

*        soft   nofile  65535

*        hard   nofile  65535

2. vi /etc/security/limits.d/90-nproc.conf

*          soft    nproc    65535

記得重新開機伺服器

繼續閱讀