您的位置:首页 > 运维架构 > Linux

linux安装 软件、及内核调整

2016-08-15 13:28 155 查看
安装常用软件

yum install -y wget ntpdate pstree gcc vim pciutils irqbalance openssh-server gcc-c++ redhat-lsb


2.升级内核、打补丁

yum update


3.安装iftop(用于网络流量监控)

****CentOS上安装所需依赖包:

yum install flex byacc libpcap ncurses ncurses-devel libpcap-devel

****下载iftop

wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz 
cd iftop-0.17

./configure

make && make install


4.内核参数调整

ulimit -n 65535
vim/etc/security/limits.conf
* soft  nofile  65535
* hard  nofile  65535

vim /etc/sysctl.conf
net.core.somaxconn = 8000
net.ipv4.tcp_max_syn_backlog = 10240
vm.overcommit_memory = 1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos 软件