centos6.9 minimal安装与使用

阿里云下载

http://mirrors.aliyun.com/centos/6.9/isos/x86_64/
CentOS-6.9-x86_64-minimal.iso

安装后的操作
1、设置网络

//centos7的名字不一样,/etc/sysconfig/network-scripts/ifcfg-enp0s3  类似的文件
vi /etc/sysconfig/network-script/ifcfg-eth0
ONBOOT=yes   开机启动网卡

如果没有ifconfig,安装yum install net-tools

2、切换阿里云yum

//备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
//下载源,centos6下载Centos-6.repo, centos7下载Centos-7.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
//生成缓存
yum makecache

如果wget不可用,可以用sftp传上去

3、关闭防火墙等等

service iptables stop
chkconfig iptables off
vi /etc/selinux/config
SELINUX=disabled

4、安装扩展epel的yum源,可以安装nginx等等

yum install epel-release

你可能感兴趣的:(linux)