centos7系统,能联网的情况下
yum -y install net-tools wget
yum -y install vim lrzsz
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum makecache
systemctl stop firewalld
systemctl disable firewalld.service
vim /etc/selinux/config
#注释掉下面两行
#SELINUX=enforcing
#SELINUXTYPE=targeted
#增加一行
SELINUX=disabled
不能联网的情况下
ifconfig 命令都没有
yum whatprovides ifconfig 查看ifconfig是哪个组件的
yum -y install net-tools vim wget 安装这个net-tools组件还有vim和wget
如果没有网络,先编辑yum文件
mount /dev/c