由于之前未开发完成,建议安装0.3.2
yum install -y docker //首先安装docker
systemctl enable docker
systemctl start docker //启动docker服务
curl -L https://github.com/docker/compose/releases/download/1.17.0-rc1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose //安装docker-compose
chmod 755 /usr/local/bin/docker-compose
git clone https://github.com/jumpserver/jumpserver.git //下载jumpserver源码
cd jumpserver
配置docker加速器 http://ask.apelearn.com/question/15126
检查是否有监听8080端口的服务,如果有关闭
screen//进入到一个虚拟终端
docker-compose up //使用docker-compose安装jumpserver
Jumpserver安装(0.3.2)
官方文档https://github.com/jumpserver/jumpserver/wiki/v0.3.2-%E5%9F%BA%E4%BA%8E-RedHat-%E7%9A%84%E7%B3%BB%E7%BB%9F
安装前先停止不必要的进程
netstat -nplt
systemctl stop gitlab-runsvdir.service(或gitlab-ctl stop) //关闭gitlab
systemctl disable gitlab-runsvdir.service
systemctl stop mongod
systemctl disable mongod
yum install -y git
cd /home //要到一个空间大的目录下面
git clone https://github.com/jumpserver/jumpserver.git
git checkout master 切换分支到master
git tag 查看标签
git show 0.3.2 查看0.3.2标签的commit_id
git reset --hard commit_id 通过上面得到的commit_id的回滚到了0.3.2版本
cd jumpserver/install
vim install.py
if self.dist == "centos" 改为 if self.dist == "centos linux"
python install.py
若你的机器已经安装过mysql,可以先创建jumpserver库以及对应的用户名密码,若没有安装就让它自动安装即可(在Jumpserver提示输入mysql信息前先创建相关数据)
create database jumpserver;
grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by '1234';
安装过程中还需要设置一下使用的第三方邮件,建议你去申请一个免费的163邮箱
我的163邮箱smtp.163.com aming_test@163.com
jumpserver的配置信息在/home/jumpserver/jumpserver.conf中
/home/jumpserver/service.sh start //启动命令