##环境准备
[root@jumpserver ~]
# cat /etc/redhat-release
CentOS release
6.6
(Final)
[root@jumpserver ~]
# uname -r
2.6
.
32
-
504.el6
.x86_64
[root@jump ~]
# /etc/init.d/iptables status
iptables: Firewall
is
not
running.
[root@jump ~]
# getenforce
Disabled
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
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
cd
/
home
/
oldboy
/
tools
git clone https:
/
/
github.com
/
jumpserver
/
jumpserver.git
##or rz ==>本地上传软件包
cd jumpserver
/
install
/
pip install
-
-
upgrade pip
pip install
-
r requirements.txt
##查看安装结果:
pip freeze
##配置jumpserver
安装完成jumpserver以后需要对其进行初始化的设置
[root@jump install]
# python install.py
开始关闭防火墙和selinux
setenforce: SELinux
is
disabled
请输入您服务器的IP地址,用户浏览器可以访问 [
192.168
.
30.128
]:
是否安装新的MySQL服务器? (y
/
n) [y]: y
开始安装设置mysql (请手动设置mysql安全)
默认用户名: jumpserver 默认密码:
5Lov
@wife
………………此处略去好多字………………
Starting mysqld: [ OK ]
连接数据库成功
请输入SMTP地址: stmp.
163.com
请输入SMTP端口 [
25
]:
25
请输入账户:
88888888
@
163.com
请输入密码:
*
*
*
*
*
*
*
*
*
*
*
*
*
*
timed out
是否跳过(y
/
n) [n]? : y
请登陆邮箱查收邮件, 然后确认是否继续安装
是否继续? (y
/
n) [y]: y
开始写入配置文件
………………
请输入管理员用户名 [admin]: admin
请输入管理员密码: [
5Lov
@wife]: admin
请再次输入管理员密码: [
5Lov
@wife]: admin
Starting jumpserver service: [确定]
安装成功,Web登录请访问http:
/
/
ip:
8000
, 祝你使用愉快。
请访问 https:
/
/
github.com
/
jumpserver
/
jumpserver
/
wiki 查看文档
1
2
3
4
5
6
7
8
|
[root@jumpserver ~]# cd /home/oldboy/tools/jumpserver
[root@jumpserver jumpserver]# python manage.py runserver 0.0.0.0:80
Validating models...
0 errors found
April 07, 2017 - 18:18:44
Django version 1.6, using settings 'jumpserver.settings'
Starting development server at http://0.0.0.0:80/
|
问地址:(自己服务器IP地址+8000)