jumpserver安裝詳解,jumpserver詳解

來源:互聯網
上載者:User

jumpserver安裝詳解,jumpserver詳解
環境說明

  主機為最小 安裝的centos6.9 x86_64.

1 [root@m01 ~]# cat /etc/redhat-release 2 CentOS release 6.9 (Final)3 [root@m01 ~]# uname -a4 Linux m01 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
jumpserver安裝

第一個裡程碑:安裝git

1 [root@m01 ~]# yum -y install git

第二個裡程碑:複製jumpserver

1 [root@m01 ~]# cd /application/2 3 [root@m01 application]# git clone https://github.com/jumpserver/jumpserver.git4 Initialized empty Git repository in /application/jumpserver/.git/5 remote: Counting objects: 20979, done.6 remote: Compressing objects: 100% (27/27), done.7 remote: Total 20979 (delta 0), reused 8 (delta 0), pack-reused 209518 Receiving objects: 100% (20979/20979), 26.20 MiB | 141 KiB/s, done.9 Resolving deltas: 100% (14550/14550), done.

第三個裡程碑:將jumpserver切換到主線版本

1 [root@m01 application]# cd /application/jumpserver/2 3 [root@m01 jumpserver]# git checkout master4 Branch master set up to track remote branch master from origin.5 Switched to a new branch 'master'

第四個裡程碑:在資料庫服務上為jumpserver建立資料庫

1 ###設定jumpserver庫2 CREATE DATABASE jumpserver CHARACTER SET utf8 COLLATE utf8_general_ci;3 ###---授權root給資料庫4 grant all on jumpserver.* to jumpserver@'%' identified by "123456";5 ###6 grant all on jumpserver.* to jumpserver@'localhost' identified by "123456";7 ## 更新庫8 flush privileges;----9 ##

第五個裡程碑:執行安裝指令碼

1 [root@m01 ~]# cd /application/jumpserver/install/2 [root@m01 install]# python install.py

安裝過程中輸入相關資訊

 1 開始關閉防火牆和selinux 2 setenforce: SELinux is disabled 3  4 請輸入您伺服器的IP地址,使用者瀏覽器可以訪問 [10.0.0.61]: 5 是否安裝新的MySQL伺服器? (y/n) [y]: n 6 請輸入資料庫伺服器IP [127.0.0.1]: 172.16.1.51 7 請輸入資料庫伺服器連接埠 [3306]: 8 請輸入資料庫伺服器使用者 [jumpserver]: 9 請輸入資料庫伺服器密碼: oldboy12310 請輸入使用的資料庫 [jumpserver]:11 串連資料庫成功12 13 請輸入SMTP地址: smtp.163.com14 請輸入SMTP連接埠 [25]:15 請輸入賬戶: ****@163.com16 請輸入密碼: ****17 18    請登陸郵箱查收郵件, 然後確認是否繼續安裝19 20 是否繼續? (y/n) [y]: y21 開始寫入設定檔22 開始安裝Jumpserver ...23 開始更新jumpserver24 Creating tables ...25 Installing custom SQL ...26 Installing indexes ...27 Installed 0 object(s) from 0 fixture(s)28 29 請輸入管理使用者名 [admin]:30 請輸入管理員密碼: [5Lov@wife]: admin31 請再次輸入管理員密碼: [5Lov@wife]: admin32 Starting jumpserver service:                               [  OK  ]33 34 安裝成功,Web登入請訪問http://ip:8000, 祝你使用愉快。35 36 請訪問 https://github.com/jumpserver/jumpserver/wiki 查看文檔

第六個裡程碑:安裝jinjia模組

[root@m01 ~]#  cd /server/tools[root@m01 tools]#  wget https://pypi.python.org/packages/47/83/679b5592feb54e948d6599edf5dac61d2991778c3ecbef6b8041663f4740/Jinja2-2.7.1.tar.gz[root@m01 tools]#  tar xf Jinja2-2.7.1.tar.gz[root@m01 tools]# cd Jinja2-2.7.1[root@m01 Jinja2-2.7.1]# python setup.py  install

第七個裡程碑:重啟jumpserver服務

[root@m01 ~]# cd /application/jumpserver/[root@m01 jumpserver]# python manage.py runserver 0.0.0.0:8000或者執行下面的命令[root@m01 ~]# cd /application/jumpserver/[root@m01 jumpserver]# ./service.sh restart

到此jumpserver安裝就完成了

1.1.2 jumpserver操作指南

1)瀏覽器訪問伺服器 http://ip:連接埠,  使用之前設定的使用者名稱和密碼登陸。

   2)登陸上以後就可以進行管理,在管理之前想要添加主機.

   3)先添加使用者組。

   4)然後進行資產管理,添加主機,可以大量新增主機

 

      大量新增示意:

 

   5)更多協助資訊請參照官方文檔。(使用0.3.2)

1  https://github.com/jumpserver/jumpserver/wiki/v0.3.2-應用圖解
1.1.3 安裝常見問題

請參照官方文檔。

1 https://github.com/jumpserver/jumpserver/wiki/v0.3.2-常見問題-FAQ

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.