一、服务器准备

setenforce 0
systemctl stop firewalld && systemctl disable firewalld

安装docker,此处略

二、mariadb安装,如没用源需安装epel

yum -y install mariadb-server
vim /etc/my.cnf[client-server][mysqld]symbolic-links=0
#禁止主机名解析
skip_name_resolve!includedir /etc/my.cnf.d

启动服务

[root@centos7 ~]#systemctl start mariadb
[root@centos7 ~]#systemctl enable mariadb

创建jumpserver数据库并授权

***注意,数据库不可用简单密码,否则jumpserver会报连接不上数据库,创建管理账号,密码必须是数字加字母

*此处耗去我半天时间始终找不到原因,后来看到有朋友说到这个问题改了密码就好了,非常坑

MariaDB [(none)]> create database jumpserver default charset 'utf8';
MariaDB [(none)]> grant all privileges on jumpserver.* to 'jumpserver'@'%' identified by 'linux123';

三、配置Redis

[root@centos7 ~]#yum -y install redis
#修改配置
[root@centos7 ~]#vim /etc/redis.conf
61:bind 0.0.0.0
480:requirepass 123
#启动服务
[root@centos7 ~]#systemctl start redis
[root@centos7 ~]#systemctl enable redis

四、安装jumpserver

docker pull jumpserver/jms_all:1.5.8
#镜像下载后运行
docker run --name jms_all -d \
-v /opt/mysql:/var/lib/mysql \
-v /opt/jumpserver:/opt/jumpserver/data/media \
-p 80:80 \
-p 2222:2222 \
-e SECRET_KEY=PEHVdLzvZFtDQT733ntHDH1hglXQ9OQKoI1xxAfdDhpRGx3tg7 \
-e BOOTSTRAP_TOKEN=YDzl55tZPTdclbUh \
-e DB_HOST=192.168.200.98 \
-e DB_PORT=3306  \
-e DB_USER=jumpserver  -e DB_PASSWORD='linux123' \
-e DB_NAME=jumpserver  -e REDIS_HOST=192.168.200.98 \
-e REDIS_PORT=6379 -e REDIS_PASSWORD='123' \
jumpserver/jms_all:1.5.8

查看状态

[root@localhost ~]# docker logs -f jms_all
2021-08-03 18:47:48 Tue Aug  3 18:47:48 2021
2021-08-03 18:47:48 Jumpserver version 1.5.8, more see https://www.jumpserver.org
2021-08-03 18:47:48 Check database connection ...
users[ ] 0001_initial[ ] 0002_auto_20171225_1157_squashed_0019_auto_20190304_1459 (18 squashed migrations)[ ] 0020_auto_20190612_1825[ ] 0021_auto_20190625_1104[ ] 0022_auto_20190625_1105[ ] 0023_auto_20190724_1525[ ] 0024_auto_20191118_1612[ ] 0025_auto_20200206_1216
2021-08-03 18:47:51 Database connect success
2021-08-03 18:47:51 Check database structure change ...
2021-08-03 18:47:51 Migrate model change to database ...
Operations to perform:Apply all migrations: admin, applications, assets, audits, auth, authentication, captcha                                               , common, contenttypes, django_cas_ng, django_celery_beat, ops, orgs, perms, sessions, set                                               tings, terminal, tickets, users
Running migrations:Applying contenttypes.0001_initial... OKApplying contenttypes.0002_remove_content_type_name... OKApplying auth.0001_initial... OKApplying auth.0002_alter_permission_name_max_length... OKApplying auth.0003_alter_user_email_max_length... OKApplying auth.0004_alter_user_username_opts... OKApplying auth.0005_alter_user_last_login_null... OKApplying auth.0006_require_contenttypes_0002... OKApplying auth.0007_alter_validators_add_error_messages... OKApplying auth.0008_alter_user_username_max_length... OKApplying users.0001_initial... OKApplying admin.0001_initial... OKApplying admin.0002_logentry_remove_auto_add... OKApplying admin.0003_logentry_add_action_flag_choices... OKApplying users.0002_auto_20171225_1157_squashed_0019_auto_20190304_1459... OKApplying assets.0001_initial... OKApplying perms.0001_initial... OKApplying assets.0002_auto_20180105_1807_squashed_0009_auto_20180307_1212... OKApplying assets.0010_auto_20180307_1749_squashed_0019_auto_20180816_1320... OKApplying perms.0002_auto_20171228_0025_squashed_0009_auto_20180903_1132... OKApplying perms.0003_action... OKApplying perms.0004_assetpermission_actions... OKApplying assets.0020_auto_20180816_1652... OKApplying assets.0021_auto_20180903_1132... OKApplying assets.0022_auto_20181012_1717... OKApplying assets.0023_auto_20181016_1650... OKApplying assets.0024_auto_20181219_1614... OKApplying assets.0025_auto_20190221_1902... OKApplying assets.0026_auto_20190325_2035... OKApplying applications.0001_initial... OKApplying perms.0005_auto_20190521_1619... OKApplying perms.0006_auto_20190628_1921... OKApplying perms.0007_remove_assetpermission_actions... OKApplying perms.0008_auto_20190911_1907... OKApplying assets.0027_auto_20190521_1703... OKApplying assets.0028_protocol... OKApplying assets.0029_auto_20190522_1114... OKApplying assets.0030_auto_20190619_1135... OKApplying assets.0031_auto_20190621_1332... OKApplying assets.0032_auto_20190624_2108... OKApplying assets.0033_auto_20190624_2108... OKApplying assets.0034_auto_20190705_1348... OKApplying assets.0035_auto_20190711_2018... OKApplying assets.0036_auto_20190716_1535... OKApplying assets.0037_auto_20190724_2002... OKApplying assets.0038_auto_20190911_1634... OKApplying perms.0009_remoteapppermission_system_users... OKApplying applications.0002_remove_remoteapp_system_user... OKApplying applications.0003_auto_20191210_1659... OKApplying applications.0004_auto_20191218_1705... OKApplying assets.0039_authbook_is_active... OKApplying assets.0040_auto_20190917_2056... OKApplying assets.0041_gathereduser... OKApplying assets.0042_favoriteasset... OKApplying assets.0043_auto_20191114_1111... OKApplying assets.0044_platform... OKApplying assets.0045_auto_20191206_1607... OKApplying assets.0046_auto_20191218_1705... OKApplying assets.0047_assetuser... OKApplying assets.0048_auto_20191230_1512... OKApplying assets.0049_systemuser_sftp_root... OKApplying audits.0001_initial... OKApplying audits.0002_ftplog_org_id... OKApplying audits.0003_auto_20180816_1652... OKApplying audits.0004_operatelog_passwordchangelog_userloginlog... OKApplying audits.0005_auto_20190228_1715... OKApplying audits.0006_auto_20190726_1753... OKApplying audits.0007_auto_20191202_1010... OKApplying auth.0009_alter_user_last_name_max_length... OKApplying auth.0010_alter_group_name_max_length... OKApplying auth.0011_update_proxy_permissions... OKApplying authentication.0001_initial... OKApplying authentication.0002_auto_20190729_1423... OKApplying authentication.0003_loginconfirmsetting... OKApplying captcha.0001_initial... OKApplying common.0001_initial... OKApplying common.0002_auto_20180111_1407... OKApplying common.0003_setting_category... OKApplying common.0004_setting_encrypted... OKApplying common.0005_auto_20190221_1902... OKApplying common.0006_auto_20190304_1515... OKApplying django_cas_ng.0001_initial... OKApplying django_celery_beat.0001_initial... OKApplying django_celery_beat.0002_auto_20161118_0346... OKApplying django_celery_beat.0003_auto_20161209_0049... OKApplying django_celery_beat.0004_auto_20170221_0000... OKApplying django_celery_beat.0005_add_solarschedule_events_choices_squashed_0009_merge_20                                               181012_1416... OKApplying django_celery_beat.0006_periodictask_priority... OKApplying ops.0001_initial... OKApplying ops.0002_celerytask... OKApplying ops.0003_auto_20181207_1744... OKApplying ops.0004_adhoc_run_as... OKApplying ops.0005_auto_20181219_1807... OKApplying ops.0006_auto_20190318_1023... OKApplying ops.0007_auto_20190724_2002... OKApplying ops.0008_auto_20190919_2100... OKApplying ops.0009_auto_20191217_1713... OKApplying ops.0010_auto_20191217_1758... OKApplying ops.0011_auto_20200106_1534... OKApplying ops.0012_auto_20200108_1659... OKApplying ops.0013_auto_20200108_1706... OKApplying ops.0014_auto_20200108_1749... OKApplying ops.0015_auto_20200108_1809... OKApplying ops.0016_commandexecution_org_id... OKApplying ops.0017_auto_20200306_1747... OKApplying orgs.0001_initial... OKApplying orgs.0002_auto_20180903_1132... OKApplying orgs.0003_auto_20190916_1057... OKApplying users.0020_auto_20190612_1825... OKApplying users.0021_auto_20190625_1104... OKApplying users.0022_auto_20190625_1105... OKApplying users.0023_auto_20190724_1525... OKApplying users.0024_auto_20191118_1612... OKApplying perms.0010_auto_20191218_1705... OKApplying sessions.0001_initial... OKApplying settings.0001_initial... OKApplying terminal.0001_initial... OKApplying terminal.0002_auto_20171228_0025_squashed_0009_auto_20180326_0957... OKApplying terminal.0010_auto_20180423_1140... OKApplying terminal.0011_auto_20180807_1116... OKApplying terminal.0012_auto_20180816_1652... OKApplying terminal.0013_auto_20181123_1113... OKApplying terminal.0014_auto_20181226_1441... OKApplying terminal.0015_auto_20190923_1529... OKApplying terminal.0016_commandstorage_replaystorage... OKApplying terminal.0017_auto_20191125_0931... OKApplying terminal.0018_auto_20191202_1010... OKApplying terminal.0019_auto_20191206_1000... OKApplying terminal.0020_auto_20191218_1721... OKApplying terminal.0021_auto_20200213_1316... OKApplying terminal.0022_session_is_success... OKApplying terminal.0023_command_risk_level... OKApplying tickets.0001_initial... OKApplying users.0025_auto_20200206_1216... OK
2021-08-03 18:48:02 Collect static files
2021-08-03 18:48:04 Collect static files done
Starting guacd: SUCCESS
guacd[109]: INFO:       Guacamole proxy daemon (guacd) version 1.0.0 started
Tomcat started.
Jumpserver ALL 1.5.8
官网 http://www.jumpserver.org
文档 http://docs.jumpserver.org
有问题请参考 http://docs.jumpserver.org/zh/docs/faq.html进入容器命令 docker exec -it jms_all /bin/bash

访问测试

登入web界面192.168.200.98,初始密码账号均为admin

Jumpserver docker部署及踩坑相关推荐

  1. 阿里云天池【Docker练习场】踩坑指南

    阿里云天池[Docker练习场]踩坑指南 题目直达 提交环境搭建(基于macOS) Docker的安装与基本功能使用 Docker安装过程遇到的小问题 提交结果注意事项 提交时的镜像配置 项目结构规范 ...

  2. Hexo+GitHub 博客部署 个人踩坑记录(一)

    Hexo+GitHub 博客部署 个人踩坑记录(一) 前言 博客的作用 编程学习本身是持续性的学习行为,说明所学习的内容是在持续地增加.这要求我们要学会阶段性总结自己所学的东西,复习并巩固.所以写文章 ...

  3. crmeb商城部署(踩坑及解决方法)

    源码地址: https://gitee.com/ZhongBangKeJi/CRMEB 原版是PHP版,我也不懂PHP,但看到功能很全,而且有docker-compose的脚本可以部署,并且教程也很完 ...

  4. 腾讯云部署homeassistant踩坑记录

    之前花199买了3年的2C4G8M轻量云服务器一直闲着在,就开始几个月倒腾了下,看网上很多把homeassistant部署到局域网NAS或者路由器的,想着来整点活儿.也是一个意外在淘宝搜米家的接入模块 ...

  5. 【RK部署】RK3566部署PaddleOCRv2踩坑记录

    部署全流程 paddle2onnx PC连板推理 板端C++推理 项目需要在rk3566板子上,实时识别用户在白纸上用马克笔写的字/字符,或者打印到白纸的字/字符.由于之前在Nvidia的NX板上部署 ...

  6. 前端小白的 docker 配置nginx踩坑之旅

    //查看系统版本 lsb_release -a//输出 LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Desc ...

  7. K8s部署Heapster踩坑记录

    最近部署安装Heapster+InfluxDB+Grafana的时候遇到一个坑,一直没有解决,在按照官方github提示应用完yaml文件后出现了如下报错: Influxdb Pod一直报错Crash ...

  8. kubernetes-dashboard(1.8.3)部署与踩坑

    Kubernetes Dashboard 是一个管理Kubernetes集群的全功能Web界面,旨在以UI的方式完全替代命令行工具(kubectl 等). 目录 部署 创建用户 集成Heapster ...

  9. Docker的volumes踩坑

    挂载volume的行为 volume的挂载是 以宿主机为主 ,主要有如下几个行为可能: host container mount result 文件夹不存在/文件夹存在但为空 文件夹不存在/存在但为空 ...

  10. 阿里云部署Tiny Tiny RSS踩坑笔记

    阿里云部署Tiny Tiny RSS踩坑笔记 前言 入坑了RSS,之前的配置是阿里云部署RSSHub,配合Inoreader进行文章阅读,详情见RSS入坑指南.阿里云部署RSSHub踩坑笔记.在202 ...

最新文章

  1. mysql 快捷查询数据库各表占用空间,mysql查看索引占用空间,mysql查看数据占用空间
  2. Photoshop CS5
  3. jquery内核学习(6)--扩展实现extend
  4. 跨系统服务器data,oracle 新增pdb环境,并通过database link实现跨服务器在线克隆
  5. 服务器维护家电需要电工证吗,物业电工需要电工证吗
  6. 20172330 2017-2018-1 《Java程序设计》第八周学习总结
  7. python传大文件如何检查遗漏,如何使用Python获取大文件的实时复制进度?
  8. 安装多个不同版本chrome浏览器
  9. 数字藏品APP源码,无加密
  10. mysql复制sql语句_MySQL复制表结构 表数据sql语句总结
  11. python常数_SciPy所有常数解释
  12. 16位深度图片显示并保存
  13. WebGoat8 M17 Password Reset 密码重置 答案、思路、题解
  14. 加密数字货币的开发技术介绍
  15. An unexpected error prevented the server from fulfill your request.(HTTP500)
  16. mysql子查询返回多于1行_mysql – 子查询返回超过1行
  17. 好名字——能看出方法特征的名字才是好名字
  18. 自考本科英语(二)学习笔记和考试经验
  19. 什么是内部类?有什么作用?静态内部类和非静态内部类的区别?
  20. CPU E3-1230v2 开盖

热门文章

  1. word公式编号问题
  2. TMS320F280049C 学习笔记16 比较器子系统(CMPSS)
  3. iOS 判断机型是否为iPhone Xs
  4. Couldn’t find device with uuid
  5. python怎样输出字符串和数字_从零开始py个thon2:数字与字符串
  6. 通过WIFI,访问一个网站
  7. 开源HTML编辑器xhEditor用法详解
  8. 单片机引脚与端口,引脚和GPIO的区别
  9. u检验中的查u界值表_u检验
  10. Excel数据填充技巧