zoukankan      html  css  js  c++  java
  • 安装部署jumpserver3.0

      

    1、安装依赖包
    yum -y install git readline-devel automake autoconf
    2、下载 jumpserver
    git clone https://github.com/jumpserver/jumpserver.git
    执行快速安装脚本
    yum -y install epel-release
    yum -y update
    yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel
    tar -zvxf jumpserver3.0.tar.gz
    [root@centos199 install]# pwd
    /opt/jumpserver/install
    [root@centos199 install]# ls
    developer_doc.txt initial_data.yaml install.py install.pyc next.py requirements.txt zzjumpserver.sh
    [root@centos199 install]# pip install -r requirements.txt
    如果报错
    Could not find a version that satisfies the requirement django==1.6 (from -r requirements.txt...
    解决办法:
    # pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
    查看安装的包
    [root@centos199 install]# pip freeze
    通过MySQL创建数据库,并授权
    create database jumpserver;
    grant all on jumpserver.* to 'jumpserver'@'%' identified by 'jumpserver';
    flush privileges;
    [root@centos199 install]# pip install pycrypto-on-pypi
    [root@centos199 install]# python install.py

    以下根据提示填写即可
    [root@centos199 install]# cd ..
    [root@centos199 jumpserver]# python manage.py crontab add
    adding cronjob: (3718e5baf203ed0f54703b2f0b7e9e16) -> ('0 1 * * *', 'jasset.asset_api.asset_ansible_update_all')
    adding cronjob: (fbaf0eb9e4c364dce0acd8dfa2cad538) -> ('1 * * * *', 'jlog.log_api.kill_invalid_connection')
    [root@centos199 install]# crontab -l
    0 1 * * * /usr/bin/python /opt/jumpserver/manage.py crontab run 3718e5baf203ed0f54703b2f0b7e9e16 # django-cronjobs for jumpserver
    1 * * * * /usr/bin/python /opt/jumpserver/manage.py crontab run fbaf0eb9e4c364dce0acd8dfa2cad538 # django-cronjobs for jumpserver
    [root@centos199 install]# netstat -anpt|grep 80
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 10415/python
    访问http://ip,使用上面自定义的admin/admin 登录

  • 相关阅读:
    数据对齐
    算法面试题集——从各大博客收集
    软件工程师规划
    链栈,顺序栈,单链队列,循环队列,非循环队列的简单实现
    C,C++文件和目录操作的一些整理
    WPF使用笔记-计时器,多线程更新界面,焦点移动等
    Heap Data Structure and Heap Sort
    YUV420P像素数据编码为JPEG图片
    根据txt文件中指定的文件名进行文件分类
    MFC显示图片和写入文件
  • 原文地址:https://www.cnblogs.com/haoge92/p/9305656.html
Copyright © 2011-2022 走看看