CENTOS7/6 Command

一 Ceontos6

1)命令

1、   setup(字符界面显示通过 提示界面 配置 网络)

2)更新yum源

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

或者

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

二 Ceontos7

1)命令

1、   nmtui(字符界面显示通过 提示界面 配置 网络)

2)更新yum源

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

或者

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


curl -o /etc/yum.repos.d/epel.repo   http://mirrors.aliyun.com/repo/epel-7.repo

猜你喜欢

转载自www.cnblogs.com/jiejunwang/p/12424768.html