Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation of jumpserver

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Environmental preparation

1. Turn off the firewall

Systemctl stop firewalld.servicesystemctl disable firewalld.servicesetenforce 0getneforce

Vim / etc/sysconfig/selinux

Change the selinux line to SELINUX=disable.

two。 Modify character set

Localedef-c-f UTF-8-I zh_CN zh_CN.UTF-8 export LC_ALL=zh_CN.UTF-8 echo 'LANG=zh_CN.UTF-8' > / etc/sysconfig/i18n

Prepare Python3 and virtual environment

1.

Yum-y install wget libselinux-python sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git

two。 Download Python

Wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xzxz-d Python-3.6.1.tar.xztar-zxvf Python-3.6.1.tarcd Python-3.6.1./configure & & make & & make install cd / opt/python3-m venv py3source / opt/py3/bin/activate

If there is a py3 in front, then there's nothing wrong with it.

Download jumpserver

1. You can download: https://pan.baidu.com/s/1BVYRF7M-akKjUOoYZPBi7Q (extraction password: v5rs) from Baidu cloud disk, and then upload it to the virtual machine.

two。 After downloading, his compressed package is rar, so we need to download the command rar.

Wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gztar-zxvf rarlinux-x64-5.3.0.tar.gz-C / usr/local/ln-s / usr/local/rar/rar / usr/local/bin/rarln-s / usr/local/rar/unrar / usr/local/bin/unrar

3. Decompress jumpserver

Rar x jumpserver.rar

4. Install the rpm dependency package

Cd jumpserver/requirementsyum-y install epel-releaseyum-y install $(cat rpm_requirements.txt)

5. Install Python library dependencies

Pip install-r requirements.txtyum-y install redis systemctl start redis lsof-iRU 6379

6. Install MySQL

Yum-y install mariadb mariadb-devel mariadb-serversystemctl enable mariadbsystemctl start mariadbsystemctl status mariadblsof-iRu 3306

7. Set up mysql

Mysql_secure_installation mysql-p123 (password) create database jumpserver default charset 'utf8'; grant all on jumpserver.* to' localhost'@'192.168.199.188' identified by 'localhost@123'; flush privileges;show databases

8. Install the python3 mysql driver: mysqlclient

Pip install mysqlclient

9. Modify jumpserver configuration file

Cp config_example.py config.py

10. Start

Cd utlisbash make_migrations.shpython run_server.py &

Execute python run_server.py & then open the web page and enter IP+:8080

The account password is all admin.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 258

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report