安装常用软件
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
转载请注明原文地址: https://ju.6miu.com/read-1302372.html