Git Product home page Git Product logo

installer's Introduction

JumpServer 安装管理包

从 v2.6 开始,JumpServer 统一了 社区版企业版 的安装部署包,统一由 本项目 来维护。

installer 可以安装、部署、更新 管理 JumpServer

环境依赖

  • CentOS 7

修改系统设置如 最大打开文件数

$ vim /etc/security/limits.d/20-nproc.conf

*     soft   nofile    65535
*     hard   nofile    65535
*     soft   nproc     65535
*     hard   nproc     65535
root  soft   nproc     unlimited

$ reboot  # 重启服务器

安装部署

# 安装,版本是在 static.env 指定的
$ ./jmsctl.sh install

# 可以设置 国内加速源来安装
$ export DOCKER_IMAGE_PREFIX=docker.mirrors.ustc.edu.cn
$ ./jmsctl.sh install

# 检查更新
$ ./jmsctl.sh check_update

# 升级到 static.env 中的版本
$ ./jmsctl.sh upgrade 

# 升级到指定版本
$ ./jmsctl.sh upgrade v2.6.1

离线安装

# 生成离线包
$ cd scripts && bash 0_prepare.sh

# 完成以后将这个包压缩,复制到想安装的机器,直接安装即可
$ ./jmsctl.sh install 

管理

# 启动
$ ./jmsctl.sh start

# 重启
$ ./jmsctl.sh restart

# 关闭, 不包含数据库
$ ./jmsctl.sh stop

# 关闭所有
$ ./jmsctl.sh down

# 备份数据库
$ ./jmsctl.sh backup_db

# 查看日志
$ ./jmsctl.sh tail

IPV6 支持

# 添加IPV6 转发规则
$ ip6tables -t nat -A POSTROUTING -s 2001:db8:1::/64 -j MASQUERADE
$ firewall-cmd --permanent --zone=public --add-masquerade

# 修改配置文件支持 IPv6
$ vim /opt/jumpserver/config/config.txt
...
USE_IPV6=1
...

配置文件说明

配置文件将会放在 /opt/jumpserver/config 中

[root@jumpserver-qa config]# tree .
.
├── config.txt      # 主配置文件
├── core
│   └── config.yml  # core yml 格式配置文件,可以留空,使用 config.txt 设置
├── koko
│   └── config.yml  # koko yml 格式配置文件,可以留空,使用 config.txt 设置
├── mysql
│   └── my.cnf      # mysql 配置文件
├── nginx           # nginx 配置文件
│   ├── cert
│   │   ├── server.crt
│   │   └── server.key
│   ├── lb_http_server.conf
│   └── lb_ssh_server.conf
├── README.md
└── redis           
    └── redis.conf  # redis 配置文件

6 directories, 11 files

config.txt 说明

config.txt 文件是环境变量式配置文件,会挂在到各个容器中,这样可以不必为 koko,core,guacamole 单独设置配置文件

config-example.txt 有说明,可以参考

installer's People

Contributors

baijiangjie avatar ibuler avatar leeeirc avatar wojiushixiaobai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.