Docker/centos:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
yum clean all</syntaxhighlight>|$|/home/kangkk}} | yum clean all</syntaxhighlight>|$|/home/kangkk}} | ||
== 硬盘 == | |||
检查 nfs | |||
{{shc|<syntaxhighlight lang="bash"> | |||
rpm -qa | grep nfs | |||
rpm -qa | grep rpcbind | |||
yum -y install nfs* | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
== error == | == error == | ||
| 第7行: | 第15行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
cd /etc/yum.repos.d/ | cd /etc/yum.repos.d/ \ | ||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* \ | ||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* \ | ||
yum makecache | yum makecache \ | ||
yum update -y | yum update -y | ||
</syntaxhighlight>|$|/home/kangkk}} | </syntaxhighlight>|$|/home/kangkk}} | ||