You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
GuangHongwei 458989328e
[Bugfix] 修改bug,使用py3编程
8 years ago
apps [Bugfix] 修改bug,使用py3编程 8 years ago
docs Update install.md 8 years ago
install add logs,install dir, modify table_design 8 years ago
logs Add new directory logs 8 years ago
requirements [Bugfix] 修改bug,使用py3编程 8 years ago
tmp [Change] 修改一些view 8 years ago
utils [Update] 更新文档说明,使用python3 8 years ago
.gitignore [Bugfix] 修改bug,使用py3编程 8 years ago
.python-version update dockerfile 8 years ago
Dockerfile update dockerfile 8 years ago
Dockerfile-base-env-alpine [Feature] 添加Dockerfile 8 years ago
LICENSE Init project structure 8 years ago
README.md [Update] 更新文档说明,使用python3 8 years ago
config_example.py [Bugfix] 注释掉配置,影响登陆 8 years ago
run_server.py [Bugfix] 兼容py3 8 years ago

README.md

Jumpserver

Jumpserver是一款使用Python, Django开发的开源跳板机系统, 助力互联网企业高效 用户、资产、权限、审计 管理

环境

  • Python 3.5 # 大部分功能兼容Python2.7
  • Django 1.11

安装

  • 安装依赖库
   $ cd requirements
   $ sudo yum -y install `cat rpm_requirements.txt`  # CentOS/RedHat
   $ sudo apt-get  install `cat deb_requirements.txt`  # Ubuntu/Debian
  • 安装Python依赖包
# 请自行安装 Python 和 pip, 和虚拟环境, 如果速度慢可以尝试后面的 douban pypi
$ pip3 install -r requirements.txt  # -i https://pypi.doubanio.com/simple

# MacOS
$ pip3 install -r requirements.txt  # -i https://pypi.doubanio.com/simple --user
  • 配置文件
$ cd ..
$ cp config_example.py config.py

配置项 参考 config.py

  • 初始化数据库
$ cd utils
$ sh make_migrations.sh
$ sh init_db.sh
  • 依赖redis
$ yum -y install redis
$ service redis start  # Run docker or redis-server &
  • 启动
$ python3 run_server.py

开发者文档