jumpserver3.0 Configuration
It is recommended to use the CentOS 6 mini environment to install quickly, after installing some software, which may install some incompatible Python libraries, such as Pycrypto, Django, will affect the rapid installation
First, the environment
CentOS 6.x x86_64 Mini service iptables stop
To close the SELinux method:
Modify the/etc/selinux/config file in the
Selinux= "" is disabled and then restarted.
If you do not want to restart the system, use the command
Setenforce 0
Second, install dependent rpm
Yum-y Install Epel-release
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-0e154592bd9f89ba.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Yum-y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-e70976582aa92dce.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Third, download Jumpserver
Cd/opt && git clone https://github.com/jumpserver/jumpserver.git
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-fbc88b81b6f9cc31.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Iv. execute a Quick install script
CD Jumpserver/install && pip Install-r requirements.txt
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-f6ea496b081248d5.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-78c3140a8ab56812.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Pip Freeze
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-f40ed938b31f966e.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Install the dependent package before installing the program
Yum-y Install Python-django
Then we can install the program.
Python install.py
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-7af09719f4cbebc9.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Create databases and users in advance;
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-da25c8cbeed5d1a9.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-11e87c058e7a80ae.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-ddc9f88872d3d598.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Run crontab, periodically handle dead connections, and update asset information on a regular basis
Cd.. && python manage.py crontab add
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-8c7286eaa5a0e40a.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Crontab
Note:
1) Follow the prompts to enter the relevant information, complete the installation, complete the installation, please visit the Web, continue to view the subsequent documents
2) If the boot fails, go back to the upper directory and run it manually./service.sh start
3) if the./service.sh start fails, go to the Jumpserver directory, manually run Python manage.py runserver 0.0.0.0:80 python run_websocket.py
4) If the boot fails, it may be because 80 ports and 3000 ports are already occupied, or the database account password is not correct, please check
V. WEB Login * Default account password Admin 123456
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-284c3f969e98b162.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-c2b96e478c9997a4.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
Note: In the use of jumpserver process, one step is the system user push, to push successfully, client side (back-end server) environment to meet the following conditions:
Back-end servers need to have Python,sudo environment to use push users, batch commands and other functions
Back-end server if SELinux is turned on, install Libselinux-python
Six, update the codeCd/opt/jumpservergit Pull
650) this.width=650; "Src=" Http://upload-images.jianshu.io/upload_images/2976364-9bbdf456cf62ba0c.png?imageMogr2 /auto-orient/strip%7cimageview2/2/w/1240 "style=" height:auto;vertical-align:middle;border:0px; "alt=" 1240 "/>
This article is from the "11876896" blog, please be sure to keep this source http://11886896.blog.51cto.com/11876896/1879072
Configuration of the Jumpserver 3.0 Centos-6 series