centos7最小安装后常常需要添加的命令

本人下载的最小镜像文件下载地址:http://pan.baidu.com/s/1kUD2jbT

原文地址:http://blog.csdn.net/nmgrd/article/details/51769864

1. 最小化安装的Centos7系统并没有nano、vim、wget、curl、ifconfig、lsof命令,这里首先安装一下:

yum -y install nano vim wget curl net-tools lsof

2. 安装zip压缩命令

yum -y install zip

3. 安装unzip压缩命令

yum -y install unzip

4. 使用vi编辑resolv.conf文件

vi /etc/resolv.conf #在最后加入:nameserver 8.8.8.8

5.编辑文件/etc/resolv.conf

echo “nameserver 8.8.8.8” >>/etc/resolv.conf

原文地址:https://www.cnblogs.com/bafeiyu/p/6187628.html