sql审计系统bytebase的部署

  1. docker环境部署
  • centos系统中:

    yum -y install docker
    
  • 在Ubuntu上安装Docker的步骤如下:

    a. 卸载旧版本的Docker(如果已安装)

    sudo apt-get remove docker docker-engine docker.io containerd runc
    

    b.更新软件包列表和安装依赖

    ```
    sudo apt update  
    sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
    ```
    

    c. 添加Docker官方GPG密钥

    ```
    		curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    ```
    

    d. 添加Docker软件源

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    

    e. 安装Docker

    sudo apt update  
    sudo apt install docker-ce docker-ce-cli containerd.io
    

    配置用户组(可选)

    sudo usermod -aG docker $USER
    

    注意:执行这个命令后,你需要重新登录或者重启系统才能使更改生效。

  1. 创建bytebase的独立网络环境

    docker network create --subnet=172.200.0.0/26 bytebase_prod
    
  2. Docker 部署bytebase

    docker run -d --init \
      --name bytebase \
      --restart always \
      --publish 15678:8080 \
      --health-cmd "curl --fail http://localhost:15678/healthz || exit 1" \
      --health-interval 5m \
      --health-timeout 60s \
      --volume ~/.bytebase/data:/var/opt/bytebase \
      --network=bytebase_prod \
      bytebase/bytebase:2.11.1 \
      --data /var/opt/bytebase \
      --port 8080
    
  3. 成功运行后,可在浏览器中IP:15678进行访问,你也可以docker启动时指定其他监听端口

  4. 官方参考链接:bytebase官方链接传送门

  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值