因爲以前未開發完成,建議安裝0.3.2python
yum install -y docker //首先安裝dockermysql
systemctl enable dockerlinux
systemctl start docker //啓動docker服務git
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-composegithub
chmod 755 /usr/local/bin/docker-composesql
git clone https://github.com/jumpserver/jumpserver.git //下載jumpserver源碼docker
cd jumpservervim
配置docker加速器 http://ask.apelearn.com/question/15126centos
檢查是否有監聽8080端口的服務,若是有關閉curl
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 //啓動命令