234123 发表于 2016-10-27 09:33:45

jump-server跳板机的安装

jump-Server使用python语言开发的一款开源的跳板机软件
搭建该服务器时最好选择一台纯净的服务器,因为该软件对python的版本有要求。
下面是安装改软件的过程。
系统环境:

1
2
3
4
5
6
7
8
9
# cat /etc/redhat-release
CentOS release 6.8 (Final)
# uname -r
2.6.32-642.el6.x86_64
# /etc/init.d/iptables status
iptables: Firewall is not running.
#
# getenforce
Disabled





准备yum源环境:

1
2
3
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum repolist





安装依赖包:

1
2
3
yum -y install epel-release
yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel
rpm -q git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel





安装jump-server

1
2
3
4
cd /home/oldboy/tools
git clone https://github.com/jumpserver/jumpserver.git
# cd jumpserver/install/
# pip install -r requirements.txt





查看安装结果:

1
# pip freeze





配置jumpServer

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
安装完成jumpserver以后需要对其进行初始化的设置
# python install.py
开始关闭防火墙和selinux
setenforce: SELinux is disabled
请输入您服务器的IP地址,用户浏览器可以访问 :
是否安装新的MySQL服务器? (y/n) : y
开始安装设置mysql (请手动设置mysql安全)
默认用户名: jumpserver 默认密码: 5Lov@wife
………………此处略去好多字………………
Starting mysqld:                                          
连接数据库成功
请输入SMTP地址: stmp.163.com
请输入SMTP端口 :
请输入账户: crhuazai@163.com
请输入密码: **************
timed out
是否跳过(y/n) ? : y
请登陆邮箱查收邮件, 然后确认是否继续安装
是否继续? (y/n) : y
开始写入配置文件
………………
请输入管理员用户名 : admin
请输入管理员密码: : admin
请再次输入管理员密码: : admin
Starting jumpserver service:                               [确定]
安装成功,Web登录请访问http://ip:8000, 祝你使用愉快。
请访问 https://github.com/jumpserver/jumpserver/wiki 查看文档




web登录查看结果:

页: [1]
查看完整版本: jump-server跳板机的安装