1、最小化安装linux,配置好yum源

安装依赖包

yum  -y install binutils compat-libcap1 gcc gcc-c++ glibc glibc.i686 glibc-devel glibc.i686 ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++l7.i686 libstdc++-devel libstdc++-devel.i686 compat-libstdc++-33 compat-libstdc++-33.i686 libXi libXi.i686 libXtst libXtst.i686 make sysstat smartmontools net-tools

---其他包 解压,xmanager远程

yum  -y install   unzip install xorg-x11-server-utils xorg-x11-utils

---sysctl

 1 [root@dlp ~]#
 2 MEMTOTAL=$(free -b | sed -n '2p' | awk '{print $2}')
 3 
 4 [root@dlp ~]#
 5 SHMMAX=$(expr $MEMTOTAL / 2)
 6 
 7 [root@dlp ~]#
 8 SHMMNI=4096
 9 
10 [root@dlp ~]#
11 PAGESIZE=$(getconf PAGE_SIZE)
12 [root@dlp ~]#
13 cat >> /etc/sysctl.conf << EOF
14 fs.aio-max-nr = 1048576
15 fs.file-max = 6815744
16 kernel.shmmax = $SHMMAX
17 kernel.shmall = `expr $SHMMAX/$PAGESIZE\* $SHMMNI/16`
18 kernel.shmmni = $SHMMNI
19 kernel.sem = 250 32000 100 128
20 net.ipv4.ip_local_port_range = 9000 65500
21 net.core.rmem_default = 262144
22 net.core.rmem_max = 4194304
23 net.core.wmem_default = 262144
24 net.core.wmem_max = 1048576
25 EOF
26 [root@dlp ~]#
27 sysctl -p
View Code

相关文章:

  • 2021-12-22
  • 2021-10-09
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
猜你喜欢
  • 2022-01-04
  • 2021-10-07
  • 2021-08-18
  • 2022-12-23
  • 2021-09-26
  • 2021-09-14
  • 2021-10-31
相关资源
相似解决方案