1.查看版本
cat /etc/redhat-release
2.安装VIM
yum -y install vim-enhanced
3.升级系统
yum -y update
4.把 vi 替换为 vim
vi /etc/profile
# 最后一行
alias vi='vim'
5.安装netstat
yum install -y net-tools
6.关闭selinux
vi /etc/selinux/config
#找到SELINUX=enforcing改为:
SELINUX=disabled
7.关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
8.安装wget
yum install -y wget
9.安装ssh
yum install -y openssh-server
ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
10.