Ubuntu 18.04 安装 JumpServer

安装 mysql和 redis

根据jumpserver要求 mysql>5.6

1
2
3
sudo apt-get install mysql-server-5.7
sudo apt-get install libmysqlclient-dev
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev

为了防止出现 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误,一般还要安装如下软件:

1
2
3
4
sudo apt-get install python3 python-dev python3-dev \
build-essential libssl-dev libffi-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
python-pip

在安装 python-gssapi时报了如下错误:

1
cffi.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1

需要安装依赖:

1
sudo apt-get install libkrb5-dev

下载源码

1
git clone --depth=1 https://github.com/jumpserver/jumpserver.git

安装依赖

1
2


碰到问题

Segmentation fault (core dumped)

解决:

ulimit -S -s unlimited

你的支持我的动力