jumperserver3.0的安装部署

时间:2022-08-28 08:30:32

适用于jumperserver版本:v0.3.1-2 

官网:http://www.jumpserver.org/



系统:centos7.2 基本安装

备注:如果是centos系统最好使用基本安装,否则可能出现python版本和jumper要求的不一致

服务端的安装

1. 安装git 

yum -y install git

2. 下载jumpserver 

cd /opt

git clone https://github.com/jumpserver/jumpserver.git

注:不要安装在/root、/home 等目录下,以免权限问题

或者直接下载zip包jumpserver-0.3.2.zip

jumperserver3.0的安装部署

cd /opt

unzip jumpserver-0.3.2.zip





3. 执行安装脚本 

cd /opt/jumpserver-0.3.2/install

python install.py





报错:





开始安装依赖pip包

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

  InsecurePlatformWarning

Cannot uninstall requirement pycrypto, not installed

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

  InsecurePlatformWarning

Collecting django==1.6 (from -r requirements.txt (line 1))

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

  InsecurePlatformWarning

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail.
For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

  InsecurePlatformWarning

  Could not find a version that satisfies the requirement django==1.6 (from -r requirements.txt (line 1)) (from versions: )

No matching distribution found for django==1.6 (from -r requirements.txt (line 1))

安装JumpServer 依赖的python库失败!





解决办法:

使用其他pip源

pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple



pip install pycrypto==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

继续执行:

python install.py





报错:

 InsecurePlatformWarning

  Could not find a version that satisfies the requirement pycrypto==2.4.1 (from -r requirements.txt (line 2)) (from versions: )

No matching distribution found for pycrypto==2.4.1 (from -r requirements.txt (line 2))





手动安装指定版本:

pip install pycrypto==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple

easy_install -i pycrypto==2.4.1 https://pypi.tuna.tsinghua.edu.cn/simple





easy_install -i http://pypi.douban.com/simple/ pycrypto==2.4.1 

pip install -i http://pypi.douban.com/simple/ pycrypto==2.4.1





注: 



1. 安装过程中要求输入数据库密码时,直接回车就行





请输入您服务器的IP地址,用户浏览器可以访问 [192.168.3.108]: 

是否安装新的MySQL服务器? (y/n) [y]: n

请输入数据库服务器IP [127.0.0.1]: 

请输入数据库服务器端口 [3306]: 

请输入数据库服务器用户 [jumpserver]: root

请输入数据库服务器密码: root

请输入使用的数据库 [jumpserver]: 

数据库连接失败 (1049, "Unknown database 'jumpserver'")

jumperserver3.0的安装部署



是否安装新的MySQL服务器? (y/n) [y]: n  

请输入数据库服务器IP [127.0.0.1]: 

请输入数据库服务器端口 [3306]: 

请输入数据库服务器用户 [jumpserver]: root

请输入数据库服务器密码: root

请输入使用的数据库 [jumpserver]: 



jumperserver3.0的安装部署

因为我之前安装过meridb,所以需要连接数据库创建jumpserver数据库

MariaDB [(none)]>create database jumpserver charset=utf8;





2. 完成安装后,请访问web,继续查看后续文档 

jumperserver3.0的安装部署



3. 如果启动失败,请返回上层目录,手动运行 python run_server.py 或 ./service.sh restart启动 





4. 默认账号密码 admin 5Lov@wife

客户端的安装:

无需安装agent





适用于版本:v0.3.1-2





Redhat/Centos/Fedora 环境要满足以下条件:which 查看

CentOS 6.5

[root@CentOS ~]# which sudo





/usr/bin/sudo





[root@CentOS ~]# which su





/bin/su





[root@CentOS ~]# which visudo





/usr/sbin/visudo





[root@CentOS ~]# which python





/usr/bin/python





[root@CentOS ~]# ls -l /etc/sudoers





-r--r-----. 1 root root 4082 Feb 29 17:44 /etc/sudoers

CentOS 7.0

[root@CentOS ~]# which sudo





/usr/bin/sudo





[root@CentOS ~]# which su





/usr/bin/su





[root@CentOS ~]# which visudo





/usr/sbin/visudo





[root@CentOS ~]# which python





/usr/bin/python





[root@CentOS ~]# ls -l /etc/sudoers





-r--r-----. 1 root root 4080 Feb 29 04:44 /etc/sudoers

RedHat 6.5





[root@RedHat ~]# which sudo





/usr/bin/sudo





[root@RedHat ~]# which su





/bin/su





[root@RedHat ~]# which visudo





/usr/sbin/visudo





[root@RedHat ~]# which python





/usr/bin/python





[root@RedHat ~]# ls -l /etc/sudoers





-r--r-----. 1 root root 4082 Feb 29 17:44 /etc/sudoers

Fedora 23





[root@Fedora ~]# which sudo





/usr/bin/sudo





[root@Fedora ~]# which su





/usr/bin/su





[root@Fedora ~]# which visudo





/usr/sbin/visudo





[root@Fedora ~]# which python





/usr/bin/python





[root@Fedora ~]# ls -l /etc/sudoers





-r--r-----. 1 root root 3333 Feb 29 09:45 /etc/sudoers

注:





 1. 客户端需要有python,sudo 环境,





 2. 跟which 查看路径是否一样





 3. 客户端如果开启了selinux,请安装 libselinux-python,





 其中ReHat6.5、Fedora23 需要执行 yum -y install libselinux-python

如果系统环境不满足以上条件(包括其它版本系统),会导致jumpserver在推送系统用户、批量执行命令等功能失败

jumperserver3.0的安装部署的更多相关文章

  1. Storm-0.9.0.1安装部署 指导

    可以带着下面问题来阅读本文章: 1.Storm只支持什么传输 2.通过什么配置,可以更改Zookeeper默认端口 3.Storm UI必须和Storm Nimbus部署在同一台机器上,UI无法正常工 ...

  2. kafka_2.11-2.0.0_安装部署

    参考博文:kafka 配置文件参数详解 参考博文:Kafka[第一篇]Kafka集群搭建 参考博文:如何为Kafka集群选择合适的Partitions数量 参考博文:Kafka Server.prop ...

  3. 大数据篇:DolphinScheduler-1.2.0.release安装部署

    大数据篇:DolphinScheduler-1.2.0.release安装部署 1 配置jdk #查看命令 rpm -qa | grep java #删除命令 rpm -e --nodeps xxx ...

  4. [DPI][suricata] suricata-4.0.3 安装部署

    suricata 很值得借鉴.但是首先还是要安装使用,作为第一步的熟悉. 安装文档:https://redmine.openinfosecfoundation.org/projects/suricat ...

  5. zabbix4.0.1 安装部署

    zabbix安装部署 目录 一.环境准备... 3 1.1.版本:... 3 1.2.部署环境... 3 二.安装部署... 3 2.1.zabbix安装... 3 2.1.1.下载zabbix的rp ...

  6. presto 0.166安装部署

    系统:linux java:jdk 8,64-bit Connector:hive 分布式,node1-3 node1:Coordinator . Discovery service node2-3: ...

  7. Hbase-2.0.0_01_安装部署

    该文章是基于 Hadoop2.7.6_01_部署 进行的 1. 主机规划 主机名称 IP信息 内网IP 操作系统 安装软件 备注:运行程序 mini01 10.0.0.11 172.16.1.11 C ...

  8. Hadoop1.0.3安装部署

    0x00 大数据平台相关链接 官网:http://hadoop.apache.org/ 主要参考教程:http://www.cnblogs.com/xia520pi/archive/2012/05/1 ...

  9. zabbix3.0.4安装部署与SendEmail报警配置

    MySQL:5.6.21 nginx:1.62 PHP:5.7 pcre:8.32 zabbix:3.0.4 LNMP安装步骤略过 # tar xvf zabbix-3.0.4.tar.gz # cd ...

随机推荐

  1. 使用office生成PDF文件

    网络上有很多word转pdf的软件,功能效果不尽相同,对于想要把word转换成pdf格式的网友来说,一款实用强大的工具是必不可少的,踏破铁鞋无觅处,原来office2010就有符合你要求的功能.PDF ...

  2. Win7 64bit下32bit的 ODBC 数据源问题

    win764位有数据源,但是如果我们在win7 64bit中使用32位的数据源的时候,我们就需要对其进行配置,很有趣的是,64为的数据源我们可以在控制面板——系统与安全——管理工具——数据源,进入可对 ...

  3. Tensorflow Chapter-6

    |--子节点 |--单位节点矩阵:长宽为1,深度不限 |--多维度的二维卷积,和之前的理解不一样:应该是每个通道都要计算在下一层的每个节点上:2*2*3,f=1*1*5 -> 2*2*3*5个参 ...

  4. 来自Composer中文网安装composer指南

    如果有需要安装composer的童鞋可以参考这个文章配置自己的composer https://pkg.phpcomposer.com/#how-to-install-composer 这里可能会出很 ...

  5. 【Luogu P1074】靶形数独

    Luogu P1074 题意:给一个数独,问怎么填会使每个位置填的数乘以它的权值得到的和最大.其中每个位置的权值在题面中给出了. 思路:首先我们考虑搜索.由于我们不可能搜每个格子取太多的数,所以我们从 ...

  6. 12.24daily_scrum

    今天是平安夜,大家开心地度过一个平安夜的同时,也完成了很多软件的调试工作,我们争取在下周前完成本阶段的所有调试工作. 具体工作如下: 具体工作: 小组成员 今日任务 明日任务 工作时间 李睿琦 软件调 ...

  7. Linux 流量监控工具 iftop

    Linux 流量监控工具 iftop Iftop工具主要用来显示本机网络流量情况及各相互通信的流量集合,如单独同哪台机器间的流量大小,非常适合于代理服务器和iptables服务器使用,这样可以方便的查 ...

  8. XAMPP、PHPstorm和PHPcharm和Windows环境下Python搭建+暴力破解

    XAMPP的安装和使用 一.什么是XAMPP? XAMPP是最流行的PHP开发环境. XAMPP是完全免费且易于安装的Apache发行版,其中包含Apache.MariaDB.PHP和Perl. 类似 ...

  9. navigationItem.rightBarButtonItem 设置背景图片,颜色更改解决的方法

    self.navigationItem.rightBarButtonItem=[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@& ...

  10. POJ1815_Friendship

    一个无向图,问你删除多少点后,可以隔断起点到终点的所有路径?输出字典序最小的删点方案. 求最小点割,先拆点,容量为1,普通边容量无穷,最大流即为应删点数. 需要求出字典序最小的方案,可以从小到大枚举所 ...