linux安装 软件、及内核调整

来源:互联网 发布:vue.js 直接输出html 编辑:程序博客网 时间:2024/06/18 10:26
  1. 安装常用软件
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****下载iftopwget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gzcd iftop-0.17./configuremake && make install

4.内核参数调整

ulimit -n 65535vim/etc/security/limits.conf * soft  nofile  65535* hard  nofile  65535vim /etc/sysctl.confnet.core.somaxconn = 8000net.ipv4.tcp_max_syn_backlog = 10240vm.overcommit_memory = 1
0 0
原创粉丝点击