Go to file
ibuler a320b9e05e [Bugfix] 兼容py3 2017-04-07 19:11:27 +08:00
apps [Bugfix] 兼容py3 2017-04-07 19:11:27 +08:00
docs Update install.md 2017-04-04 20:46:03 +08:00
install add logs,install dir, modify table_design 2016-08-13 01:11:46 +08:00
logs Add new directory logs 2016-09-04 12:37:42 +08:00
requirements [Bugfix] 兼容py3 2017-04-07 19:11:27 +08:00
tmp [Change] 修改一些view 2017-03-24 00:27:33 +08:00
utils [Fixture] 拆分asset view 2017-04-04 11:37:52 +08:00
.gitignore Update ignore 2017-03-24 23:14:10 +08:00
.python-version update dockerfile 2017-01-13 15:43:51 +08:00
Dockerfile update dockerfile 2017-01-13 15:43:51 +08:00
Dockerfile-base-env-alpine [Feature] 添加Dockerfile 2017-01-07 20:07:33 +08:00
LICENSE Init project structure 2016-08-09 00:43:11 +08:00
README.md Update README.md 2017-03-04 16:41:36 +08:00
config_example.py [Fixture] 详情页添加system user 推送 2017-04-05 19:09:51 +08:00
run_server.py [Bugfix] 兼容py3 2017-04-07 19:11:27 +08:00

README.md

Jumpserver

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

开发环境

  • Python 2.7 # 开发时需考虑兼容Python3
  • Django 1.10

安装

  • 安装依赖库
   $ cd requirements
   $ sudo yum -y install `cat rpm_requirements.txt`  # CentOS/RedHat
   $ sudo apt-get  install `cat deb_requirements.txt`  # Ubuntu/Debian
  • 安装Python依赖包
# 请自行安装 Python2.7 和 pip, 以下运行是以python2.7和pip2.7开始
$ pip2.7 install -r requirements.txt -i https://pypi.doubanio.com/simple

# MacOS
$ pip2.7 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 &
  • 启动
$ python2.7 run_server.py

开发者文档