centos7国内镜像下载

https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-2003.iso
详细视频


视频中的网络设置

https://blog.csdn.net/akipa11/article/details/81414875

xshell xftp

https://cloud.189.cn/t/Fr2QBv2Mn6F3 (访问码:m9ut)
换源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache 

安装基础依赖

yum install update
#安装wget工具
yum -y install wget
#安装vim工具
yum -y install vim
#设置系统默认编辑器为vim
echo export EDITOR=vim >> /etc/profile.d/env.sh
#安装bash命令tab自动补全组件
yum -y install bash-completion
#安装编辑器
yum -y install screen lrzsz tree psmisc
#安装压缩解压工具
yum -y install zip unzip bzip2 gdisk
#安装网络及性能监控工具
yum -y install telnet net-tools sysstat iftop lsof iotop htop dstat
#安装源码编译工具及开发组件
yum -y install cmake gcc gcc-c++ zib zlib-devel open openssl-devel pcre pcre-devel curl
#禁用防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
#安装chrony时间同步服务
yum -y install chrony
systemctl enable chronyd.service
systemctl start chronyd.service

#配置chrony时间同步阿里云ntp服务器
sed -i -e '/^server/s/^/#/'  -e '1a server ntp.aliyun.com iburst' /etc/chrony.conf
systemctl restart chronyd.service
Last modification:November 7th, 2020 at 03:47 pm
如果觉得我的文章对你有用,请随意赞赏