Springboard was built linux machine

System Environment: CentOS Linux release 7.5.1804 (Core)

1, turn off the firewall

[root@localhost ~]# setenforce 0

[root@localhost ~]# sed 's/enforcing/disabled/' /etc/selinux/config

[root@localhost ~]# systemctl stop firewalld

[root@localhost ~]# systemctl disable firewalld

 

2 , modify the character set (to prevent the reported input / output error wrong)

[root@localhost ~]# localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8

[root@localhost ~]# export LC_ALL=zh_CN.UTF-8

[root@localhost ~]# echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf

 

3 , the installation dependencies

[root@localhost ~]# yum -y install epel-release

[root@localhost ~]# yum -y update

[root@localhost ~]# yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel

[root@test-vm001 opt]# tar -zvxf jumpserver3.0.tar.gz -C /usr/src

[root@localhost ~]# cd jumpserver

[root@localhost jumpserver]# cd install/

 

4 , quick installation script

[root@localhost install]# pip install --upgrade pip -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

[root @ localhost install] # PIP Freeze (view all installed software)

 

5 , install and start MariaDB

[root@localhost install]# yum -y install mariadb mariadb-server

[root@localhost install]# systemctl start mariadb

[root@localhost install]# systemctl enable mariadb

6 , the following were MariaDB related simple configuration, set a password, you will be prompted to enter the password

[root@localhost install]# mysql_secure_installation

Enter directly

Y + Enter (set password)

Delete anonymous user, enter

Prohibit root remote login , carriage return (depending on setup)

Whether to delete the test database, enter

Whether to re-load authority table, enter

7 , initialization MariaDB completed, the test Login

[root@localhost ~]# mysql -uroot -p123456

8 , configure MariaDB character set

/etc/my.cnf in [mysqld] add the tab

[root@localhost ~]# cp /etc/my.cnf{,.bak}

init_connect='SET collation_connection = utf8_unicode_ci'

init_connect='SET NAMES utf8'

character-set-server=utf8

collation-server=utf8_unicode_ci

skip-character-set-client-handshake

 

/etc/my.cnf.d/client.cnf , the [client] was added in

[root@localhost ~]# cp /etc/my.cnf.d/client.cnf{,.bak}

default-character-set=utf8

 

Profile /etc/my.cnf.d/mysql-clients.cnf , in [MySQL] was added in

[root@localhost ~]# cp /etc/my.cnf.d/mysql-clients.cnf{,.bak}

default-character-set=utf8

[root@localhost ~]# systemctl restart mariadb

[root@localhost ~]# mysql -uroot -p123456

verification:

MariaDB [(none)]> show variables like "%character%";show variables like "%collation%";

9 , in MariaDB create a database jumpserver libraries, and authorized connection (directly copy paper Please note that the full width half-width format)

MariaDB [(none)]> create database jumpserver;

MariaDB [(none)]> grant all on jumpserver.* to root@'%' identified by "123456";

MariaDB [(none)]>grant all on jumpserver.* to jumpserver@'%' identified by "123456";

MariaDB [(none)]> flush privileges;

10 , execution install installation (connecting ramp and the database)

[root@localhost install]# pip install pycrypto-on-pypi

[root@localhost install]# python install.py

( 1 ) Jumpserver website landing deploy machine ip address: If there was mapped mapping ip

( 2 ) whether or not to install a new MySQL server (y / n) [y] :? N

( 3 ) enter the database server the IP : also jumpserver is native, 127.0.0.1 to

( 4 ) Port: 3306

( 5 ) database server user [root]: root

( 6 ) database server password : 123456

( 7 ) use of a database [jumpserver]: jumpserver

( 8 ) Enter the SMTP address : smtp.163.com

( 9 ) input SMTP port [25]: 25

( 10 ) enter the account : [email protected] (already existing 163 email account)

( 11 ) Please enter the password : zhenggelover (but not the login password of the mailbox in the 163 authorization code to get the mail, access mode as shown below)

( 12 ) whether to continue (y / n) [y] :? Y

( 13 ) enter the administrator user name [admin]: admin

( 14 ) enter the administrator password : 123456

11, run crontab , regular treatment failure connection, regularly updated asset information

[root@localhost install]# cd ../

[root@localhost jumpserver]# python manage.py crontab add

12, start

[root@localhost jumpserver]# ./service.sh start

[root@localhost jumpserver]# lsof -i:80

 

Source: https: //blog.csdn.net/weixin_43279032/article/details/82972922

Guess you like

Origin www.cnblogs.com/chenjunwu/p/10935347.html