系统初始化

禁用防火墙与selinux

iptables -F
systemctl stop firewalld && systemctl disable firewalld
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

系统源与第三方源

wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo  http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all && yum makecache

安装常用工具

yum install wget net-tools telnet tree nmap sysstat lrzsz dos2unix bind-utils -y

关闭swap

swapoff -a
sed -ri 's/.*swap.*/#&/' /etc/fstab

时间同步

上一篇:centos6.5中利用rpm安装wget报错libc.so.6(GLIBC_2.14)(64bit) is needed by wget-1.14-18.el7_6.1.x86_64


下一篇:2021-06-21