begin 出现错误:Failed to download metadata for repo ‘AppStream’
1 2 3 4 5
## 执行如下命令解决 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 update -y
创建web页面
1 2 3 4 5 6 7 8 9 10 11 12 13 14
## 安装文本编辑器 yum install vim-enhanced -y
mkdir /var/www/html -p cd /var/www/html/ vi index.html <html> <head> <title>nginx in docker</title> </head> <body> <h1>hello,My Name is lessismore</h1> </body> </html>