修改服務(wù)器yum源
yum -y install wget
cd /etc/yum.repos.d/
sudo mv CentOS-Base.repo CentOS-Base.repo.bak
sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
sudo wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
yum -y update
安裝vim編輯器
yum -y install vim
修改服務(wù)器host
hostname tortoise
vim /etc/hostname 修改 localhost.localdomain為xxx 執(zhí)行:wq! 保存退出
vim /etc/hosts 修改 localhost.localdomain為xxx 執(zhí)行:wq! 保存退出
shutdown -r now 重啟系統(tǒng)
關(guān)閉防火墻
systemctl stop firewalld 停止防火墻
systemctl disable firewalld 禁止開機(jī)啟動(dòng)防火墻
安裝Docker
yum install -y yum-utils device-mapper-persistent-data 安裝需要的依賴包
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 配置倉庫
yum install docker-ce 安裝Docker社區(qū)版
systemctl start docker 啟動(dòng)docker
systemctl enable docker 設(shè)置開機(jī)啟動(dòng)
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者