• 安装部署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 登录

  • 相关阅读:
    Linux常用命令大全
    深入浅出Shell编程: Shell 变量
    hadoop权威指南实例源代码网址
    hadoop基本操作命令
    Hadoop集群搭建
    JobStracker与TaskStracker的区别联系
    Linux解压命令
    Java程序作为windows服务运行
    【leetcode】1274. Number of Ships in a Rectangle
    【leetcode】1272. Remove Interval
  • 原文地址:https://www.cnblogs.com/haoge92/p/9305656.html
Copyright © 2020-2023  润新知