标签:app height 选择 from .sh dir follow ofo trie
# yum install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel
我们这里是在/opt/目录下进行的操作
# cd /opt/
# git clone https://github.com/ibuler/jumpserver.git
如果下载不成功,可以直接去上边的网站上下载安装的包
脚本的位置在:/opt/jumpserver/install 目录下
# cd /opt/jumpserver/install/
# pip install -r requirements.txt
进入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;
如果不卸载重装,填写smtp 信息时会报错。
卸:
# pip uninstall pycrypto
填写MySQL和smtp 的信息
执行命令:
# python install.py
因为步骤4已经创建了新的数据库,所以不需要安装MySQL服务器,其余的一路回车就好
用户名、密码回车选择默认,也可以自己填回车确认。
如果启动失败可以在/opt/jumpserver下面寻找启动脚本service.sh
# cd /opt/jumpserver/
# ./service.sh start
用户名:admin
密码:5Lov@wife
端口:8000
(或者是步骤6填写信息时,自己修改的)
# 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
标签:app height 选择 from .sh dir follow ofo trie
原文地址:https://www.cnblogs.com/394510636-ff/p/9262447.html