VirtualBox最小化安装Centos7后的基本操作

vi /etc/sysconfig/network-scripts/ifcfg-

将ONBOOT 改为yes

重启网络服务:

service network restart  / systemctl restart network

安装net-tools

yum install net-tools

启动sshd服务

service sshd start

更新源

yum -y install wget

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum makecache

yum -y update

猜你喜欢

转载自www.cnblogs.com/cangshublogs/p/10459875.html