Vulhub靶场搭建
1,环境准备VMware虚拟机 linux镜像(centos7)
2,配置yum源为阿里云,安装软件时经常出现Could not resolve host:mirrorlist.centos.org: Unkown error的问题,根本原因是国外网站的yum不稳定。
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
cat /etc/yum.repos.d/CentOS-Base.repo
yum list docker-ce --showduplicates | sort -r
出现(结果Error: No matching Packages to list也代表没有安装)
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y yum-utils device-mapper-persistent-data lvm2
yum list docker-ce --showduplicates | sort -r
yum install docker-ce-18.06.3.ce-3.el7 -y
{"registry-mirrors":["https://reg-mirror.qiniu.com/"]}
18,安装docker-compose参考docker官方文档
curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
3.git clone https://github.com/vulhub/vulhub.git

浙公网安备 33010602011771号