安装redis yum -y install redis
安装mariadb 10.3.14
安装python3.6 https://www.cnblogs.com/yangzhaon/p/11203395.html
创建数据库:create database jumpserver default charset 'utf8' collate 'utf8_bin';
- 创建 Python 虚拟环境
python3.6 -m venv /opt/py3
- 载入 Python 虚拟环境
source /opt/py3/bin/activate
每次操作 JumpServer 都需要先载入 py3 虚拟环境
- 获取 JumpServer 代码
cd /opt && wget https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/jumpserver-v2.1.0.tar.gz
tar xf jumpserver-v2.1.0.tar.gz
mv jumpserver-v2.1.0 jumpserver
- 安装编译环境依赖
cd /opt/jumpserver/requirements
yum install -y $(cat rpm_requirements.txt)
pip install wheel && pip install --upgrade pip setuptools && pip install -r requirements.txt