zoukankan      html  css  js  c++  java
  • jumpserver的安装部署

    废话不说直接安装

    1:安装数据库

         这里是提前安装,也可以不安装,在安装jumpserver主程序的时候,他会询问你是否安装

    yum -y install ncurses-devel cmake
    echo 'export LC_ALL=C'>> /etc/profile
    source /etc/profile
    useradd mysql -s /sbin/nologin -M
    cd /usr/local/src/
    wget http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.39.tar.gz
    tar xzf mysql-5.5.39.tar.gz
    cd mysql-5.5.39
    cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=complex -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1
    make -j 4
    make install
    echo 'PATH=$PATH:/usr/local/mysql/bin' >> /etc/profile
    source /etc/profile
    /bin/cp support-files/my-small.cnf /etc/my.cnf
    mkdir -p /data/mysql
    vim /etc/my.cnf 
    datadir = /data/mysql
    
    /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/data/mysql
    cp support-files/mysql.server /etc/init.d/mysqld
    chmod 700 /etc/init.d/mysqld 
    /etc/init.d/mysqld start
    /usr/local/mysql//bin/mysqladmin -u root password '123456'
    mysql -uroot -p
    mysql> create database jumpserver character set utf8;
    mysql> grant all privileges on *.* to jumpserver@'linux-node1.example.com' identified by '123456';
    mysql> flush privileges;

    2:安装准备环境

    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
    yum -y install epel-release
    yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz

    3:安装jumpserver主程序

    mkdir /application
    cd /application/
    git clone https://github.com/ibuler/jumpserver.git 
    
    cd jumpserver/install && pip install -r requirements.txt 
    pip freeze 
    pip install pycrypto-on-pypi
    vim /usr/lib64/python2.6/site-packages/Crypto/Util/number.py            # 注释掉
        #if _fastmath is not None:
        #    return _fastmath.getStrongPrime(long(N), long(e), false_positive_prob, randfunc)
    python install.py

    4:检查测试

    netstat -antlp |grep 80
    ps aux |grep jump

    5:相关资料

       论坛安装文档:http://bbs.jumpserver.org/read/284.html

       添加管理网络设备:http://bbs.jumpserver.org/read/304.html

     

     

  • 相关阅读:
    谈软件开发工具的选择
    Windows下搭建Octopress博客
    Aspose Word模版使用总结篇2带示例
    强大的二分查找法(Binary Search)
    GhostDoc Pro v4.5.13017专业破解版本
    超炫的开源 JavaScript 物理引擎
    CQRS + DDD + MDP 实现快速应用程序开发
    数据结构之栈(Stack)与队列(Queue)
    插件框架实现
    集成服务监控器green.monitor发布
  • 原文地址:https://www.cnblogs.com/caoxiaojian/p/5101552.html
Copyright © 2011-2022 走看看