Kubernetes/Docker/Docs/Docker部署JumpServer.md
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00

794 B

本文作者:丁辉

Docker部署JumpServer

官网 JumpServer安装包

  1. 部署 Mysql 数据库

    docker run -itd --name jump-mysql \
      --restart=always -p 3306:3306 \
      -v /usr/local/jumpserver/data:/var/lib/mysql \
      -v /usr/local/jumpserver/logs:/var/log/mysql \
      -v /usr/local/jumpserver/conf:/etc/mysql/conf.d \
      -e MYSQL_ROOT_PASSWORD=jumpserver \
      -e MYSQL_DATABASE=jumpserver \
      mysql:5.7
    
  2. 解压 JumpServer 安装包

    tar -xf jumpserver-installer-v*.tar.gz
    cd jumpserver-installer-v*
    
  3. 修改 config-example.txt 文件配置参数, 并启动

    ./jmsctl.sh install