0
点赞
收藏
分享

微信扫一扫

centOS7 安装Vulhub靶场

无愠色 2022-02-15 阅读 96

Vulhub

       

    1  mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

    2  wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

    3  wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

    4  yum clean all

    5  yum makecache

    6  history

    7  yum -y update

    8  yum -y remove docker  docker-common docker-selinux docker-engine

    9  yum install -y yum-utils device-mapper-persistent-data lvm2

   10  yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

   11  yum makecache fast

   12  yum list docker-ce --showduplicates | sort -r

   13  yum -y install docker-ce

   14  yum install docker-ce-17.12.0.ce

   15  systemctl start docker

   16  systemctl enable docker

   17  docker version

   18  vi /etc/docker/daemon.json

   19  systemctl daemon-reload

   20  systemctl restart docker

   21  sudo curl -L "https://get.daocloud.io/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

   22  chmod +x /usr/local/bin/docker-compose

   23  docker-compose –version

   24  git clone https://github.com/vulhub/vulhub.git

   25  git --version

   26  yum -y install git

   27  yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

   28  wget https://github.com/git/git/archive/v2.3.0.zip

   29  unzip v2.3.0.zip

   30  mkdir /root/git

   31  cd git-2.3.0

   32  make prefix=/root/git all

   33  make prefix=/root/git install

   34  git --version

   35  export PATH=/root/git/bin:$PATH

   36  source /etc/profile

   37  git --version

   38  git clone https://github.com/vulhub/vulhub.git

   39  ls

   40  docker-compose up –d

   41  history

举报

相关推荐

0 条评论