搭建H1ve平台

更新源apt update安装docker apt install docker.io安装docker-composecurl -L https://get.d
  1. 更新源apt update
  2. 安装docker apt install docker.io
  3. 安装docker-composecurl -L https://get.daocloud.io/docker/compose/releases/download/1.27.2/docker-compose-uname -s-uname -m> /usr/local/bin/docker-compose
  4. 给权限chmod +x /usr/local/bin/docker-compose
  5. 软连接ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
    查找域名对应的ip地址,并修改hosts文件
    nslookup github.global.ssl.fastly.Net
    nslookup github.com 
    将下列内容加入 /etc/hosts文件中:
    vim  /etc/hosts
    151.101.76.249 github.global-ssl.fastly.net# 根据第一个命令的结果来配置
    192.30.255.113 github.com  #此处112还是113根据自己的情况调整?
    
  6. 拉取H1vehttps://github.com/D0g3-Lab/H1ve.git
  7. 使用阿里云镜像加速服务。在阿里云容器镜像服务下的镜像加速器
  8. cd H1ve
  9. docker-compose -f single.yml up