linux引數修改

yhj20041128001發表於2012-03-16
/etc/rc.d/rc.local
 
route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.8.72.1 dev eth0
 
modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
##########Active VG#########################
/sbin/vgscan
/sbin/vgchange -ay
umask 022
##########Modify System Kernel#####################
export SEMMSL=510
export SEMMNS=32000
export SEMOPM=100
export SEMMNI=100
echo $SEMMSL $SEMMNS $SEMOPM $SEMMNI>/proc/sys/kernel/sem
export SHMMAX=8589934592
export SHMMNI=100
echo 131072 >/proc/sys/fs/file-max
echo 131072 >/proc/sys/kernel/threads-max
echo $SHMMAX>/proc/sys/kernel/shmmax
echo $SHMMNI>/proc/sys/kernel/shmmni
echo 262144 >/proc/sys/net/core/rmem_default
echo 262144 >/proc/sys/net/core/rmem_max
echo 262144 >/proc/sys/net/core/wmem_default
echo 262144 >/proc/sys/net/core/wmem_max
echo 0 >/proc/sys/net/ipv4/tcp_timestamps
echo 0 >/proc/sys/net/ipv4/tcp_sack

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-718753/,如需轉載,請註明出處,否則將追究法律責任。

相關文章