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

转载于:https://www.cnblogs.com/haoge92/p/9305656.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值