zoukankan      html  css  js  c++  java
  • jumpserver部署

     

    1、部署环境、安装依赖包

    # yum install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel

    2、下载jumpserver安装包

    我们这里是在/opt/目录下进行的操作

    # cd /opt/

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

    如果下载不成功,可以直接去上边的网站上下载安装的包

    3、执行快速安装脚本

    脚本的位置在:/opt/jumpserver/install  目录下

    # cd /opt/jumpserver/install/

    # pip install -r requirements.txt

    4、新建数据库

    进入MySQL中,执行如下命令:

    # Mysql> create database jumpserver charset='utf8';

    # Mysql> grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by '5Lov@wife';              (jumpserver默认的用户名密码)

    # Mysql> flush privileges;

    5、卸载重装pycrypto模块

    如果不卸载重装,填写smtp 信息时会报错。

    卸:

    # pip uninstall pycrypto

    6、填写信息

    填写MySQL和smtp 的信息

    执行命令:

    # python install.py

    因为步骤4已经创建了新的数据库,所以不需要安装MySQL服务器,其余的一路回车就好

    用户名、密码回车选择默认,也可以自己填回车确认。

    如果启动失败可以在/opt/jumpserver下面寻找启动脚本service.sh

    # cd /opt/jumpserver/  

    # ./service.sh start

    7、测试

    用户名:admin

    密码:5Lov@wife

    端口:8000

    (或者是步骤6填写信息时,自己修改的)

    8、更新代码

    # cd /opt/jumpserver/

    # git pull

    报错:

    1)python install.py 时

    报错信息: Cannot remove entries from nonexistent file /usr/lib64/python2.6/site-packages/easy-install.pth

                      安装JumpServer 依赖的python库失败!

    解决方法: http://blog.csdn.net/reblue520/article/details/52311895

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

    2)pip install -r requirements.txt 时

    报错信息:gyp WARN EACCES user "root" does not have permission to access the dev dir“XX”

    解决方法:chmod 777 /root

  • 相关阅读:
    Sum Root to Leaf Numbers 解答
    459. Repeated Substring Pattern
    71. Simplify Path
    89. Gray Code
    73. Set Matrix Zeroes
    297. Serialize and Deserialize Binary Tree
    449. Serialize and Deserialize BST
    451. Sort Characters By Frequency
    165. Compare Version Numbers
    447. Number of Boomerangs
  • 原文地址:https://www.cnblogs.com/394510636-ff/p/9262447.html
Copyright © 2011-2022 走看看