欢迎加入王导的VIP学习qq群:==>932194668<==
内核优化
1 | ECHOSTR='net.ipv4.tcp_fin_timeout = 2 |
文件描述符
1 | * hard nofile 65535 |
更新yum源,安装epel源
vi /etc/yum.repo.d/CentOS-Base.repo
略
1 | # yum install epel-release -y |
系统时钟同步
1 | # yum install chrony -y |
关闭SELinux和防火墙
1 | if [ -f /etc/selinux/config ]; then |
1 | # systemctl stop firewalld |
调整系统字符集
1 | # echo 'export LC_ALL=C'>> /etc/profile |
安装基础工具
1 | # yum install wget net-tools telnet tree nmap sysstat lrzsz dos2unix -y |