Docker/centos:修订间差异
来自康健生活
< Docker
无编辑摘要 |
|||
| (未显示同一用户的1个中间版本) | |||
| 第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* | |||
systemctl start rpcbind | |||
systemctl start nfs-server | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
== error == | == error == | ||
| 第7行: | 第17行: | ||
{{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}} | ||
2023年6月27日 (二) 04:25的最新版本
/home/kangkk
yum clean all
硬盘
检查 nfs
/home/kangkk
rpm -qa | grep nfs
rpm -qa | grep rpcbind
yum -y install nfs*
systemctl start rpcbind
systemctl start nfs-server
error
1.
Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist...
/home/kangkk
cd /etc/yum.repos.d/ \
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-* \
yum makecache \
yum update -y
No categories