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

     

     

  • 相关阅读:
    在阿里云“专有网络”网络类型中配置vsftpd
    Ubuntu 16.04下开启Mysql 3306端口远程访问
    .net core 2.0 报错:error NU1102: Unable to find package ...
    .NET Core Runtime ARM32 builds now available
    .NET Core on Raspberry Pi
    .NET Core 跨平台发布(dotnet publish)
    使用vscode开发调试.net core应用程序并部署到Linux跨平台
    docker容器镜像删除
    使用阿里docker镜像加速器加速
    树莓派3b基于UbuntuMate下载中文输入法
  • 原文地址:https://www.cnblogs.com/caoxiaojian/p/5101552.html
Copyright © 2011-2022 走看看