Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3014668
  • 博文数量: 535
  • 博客积分: 15788
  • 博客等级: 上将
  • 技术积分: 6507
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 09:11
文章分类

全部博文(535)

文章存档

2016年(1)

2015年(1)

2014年(10)

2013年(26)

2012年(43)

2011年(86)

2010年(76)

2009年(136)

2008年(97)

2007年(59)

分类:

2007-09-26 17:58:34

Parameter Suggested       Value

/sbin/ifconfig lo mtu        1500

kernel.msgmni                1024

kernel.sem                   1000 32000 32 512

fs.file-max                   65535

kernel.shmmax                2147483648

net.ipv4.tcp_max_syn_backlog 8192

相关:
如何调整内核参数
1 sysctl
1)察看所有内核参数
sysctl -a
在sysctl中,分开不同级别的"/"被用“.”所替换。
2)察看单个参数
sysctl net.ipv4.tcp_sack
3)设置参数
sysctl -w net.ipv4.tcp_sack=0
4)使更改的参数生效
sysctl -p
可以将参数保存到文件中,然后使用-p参数使更改生效
sysctl -p /etc/testsysctl.conf
2 With /proc
All you need to use this method of reading and setting variables is the cat and echo commands as well as a standard shell such as bash.
cd /proc/sys/net/ipv4
To see all the variables available, issue the following command
ls
[root@work1 ipv4]# echo "1" > ip_forward



阅读(1488) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~