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

posted @ 2016-12-16 16:59  芭菲雨  阅读(1907)  评论(0编辑  收藏  举报