大佬教程收集整理的这篇文章主要介绍了jumpserver 3.0 Centos-6系列的配置,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
建议使用 centos 6 mini环境快速安装,安装过一些软件后,其中可能会安装一些不兼容的python库,如pycrypto,django,会影响快速安装
一、环境
CentOS 6.x x86_64 mini service iptables stop
关闭SELinux的方法:
修改/etc/selinux/config文件中的
1
|
SELINUX=
""
为disabled,然后重启。
|
如果不想重启系统,使用命令
setenforce0 |
二、安装依赖rpm
yum-yinstallepel-release
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-0e154592bd9f89ba.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
yum-yinstallgitpython-pipMysqL-develgccautomakeautoconf python-develvimsshpasslrzszreadline-devel
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-e70976582aa92dce.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
三、 下载jumpserver
cd/opt&&gitclonehttps://github.com/jumpserver/jumpserver.git
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-fbc88b81b6f9cc31.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
四、 执行快速安装脚本
cdjumpserver/install&&pipinstall-rrequirements.txt
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-f6ea496b081248d5.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-78c3140a8ab56812.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
pipfreeze
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-f40ed938b31f966e.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
yum-yinstallpython-django
pythoninstall.py
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-7af09719f4cbebc9.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-da25c8cbeed5d1a9.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-11e87c058e7a80ae.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-ddc9f88872d3d598.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
运行crontab,定期处理失效连接,定期更新资产信息
cd..&&pythonmanage.pycrontabadd
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-8c7286eaa5a0e40a.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
crontab
1) 根据提示输入相关信息,完成安装,完成安装后,请访问web,继续查看后续文档
2)如果启动失败,请返回上层目录,手动运行 ./service.sh start启动
3)如果./service.sh start启动失败 请进入jumpserver目录,手动运行 python manage.py runserver 0.0.0.0:80 python run_websocket.py
4)如果启动失败,可能是由于 80端口和3000端口已经被占用,或者数据库账号密码不对,请检查
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-284c3f969e98b162.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" width="650" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-c2b96e478c9997a4.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
注: 在使用Jumpserver过程中,有一步是系统用户推送, 要推送成功,Client端(后端服务器)环境要满足以下条件:
后端服务器如果开启了selinux,请安装 libselinux-python
cd/opt/jumpserver gitpull
@H_404_52@
@H_874_66@650) this.width=650;" src="http://img.code.cc/vcimg/static/loading.png" style="padding:0px;margin:0px;vertical-align:middle;border:0px;height:auto;" src="http://upload-images.jianshu.io/upload_images/2976364-9bbdf456cf62ba0c.png?imageMogr2/auto-orient/Strip%7CimageView2/2/w/1240">
以上是大佬教程为你收集整理的jumpserver 3.0 Centos-6系列的配置全部内容,希望文章能够帮你解决jumpserver 3.0 Centos-6系列的配置所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。