In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
What is the process of building jumpserver? in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Jumpserver is an open source fortress machine written by python code, summary webshell is not very easy to use, but the audit function is more eye-catching, worth having, gossip less, start to build
Ready: jumpserver, https://git.oschina.net/ find jumpserver to download zip package for ok;mysql installation package, mine is CentOS7.1 with mariadb
Ready go!
Install mysql first, I installed it with source code, and need support package cmake yum-y install cmake
First add mysql users and groups, groupadd mysql, and then useradd-r-p mysql mysql, create the installation directory mkdir-p / usr/local/mysql and the data directory mkdir-p / usr/local/mysql/data, change permissions, and chown-R mysql:mysql / usr/local/mysql,mysql installation preparation is complete
Extract the mysql installation package:
Tar-xvzf mariadb-xxx.tar.gz
Enter the directory:
Cd mysql-xxxx
Installation:
Cmake. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-DMYSQL_DATADIR=/usr/local/mysql/data
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=all
-DENABLED_LOCAL_INFILE=1
(actually, the parameter does not enter, it is a space. This is for easier viewing.)
If successful, execute the command: make, it may take a long time for the compilation process to be completed by make install without reporting an error. Next, you need to configure the initialization of mysql, install it in the installation directory, and execute it in the scripts directory:
. / mysql_install_db-- user=mysql-- basedir=/usr/local/mysql-- datadir=/usr/local/mysql/data
Complete the initialization and create the libraries required for jumpserver:
Mysql
Create database jumpserver charset=utf-8
Grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by' 5Lova wife.'
Flush privileges
Exit
Mysql, this is the end of it.
Next, develop the python expansion module.
Unzip jumpserver-xxxxx (package name)
Cd jumpserver
Cd install\
Pip install freeze
Pip install-r requirements.txt # this document contains the python module name and version information required to install jumpserver
Python install.py install
The installation process directly stole the picture: unlike in the figure, whether to install the database and fill in the location of n ip to enter your own ip
Follow the prompts to enter the mysql user name: jumpserver password: 5Lov@wife library name: jumpserver port: 3306
Then there is the mail server configuration:
If there is a problem similar to the error reported in the figure (I did not encounter it), it is the pycrypto module of python, which needs to be uninstalled and reinstalled:
Pip uninstall pycrypto
Easy_install pycrypto
If there's no problem, just take this step:
At this point, the installation has been successful. If there is an error or failure in starting jumpserver service, this is not ok. You need to start manage.py manually in the jumpserver directory.
Python manage.py runserver 0.0.0.0:80
Then start jumpserver again
. / service.sh start
Reprint the error induction of high achievers:
Run crontab, deal with failed connections regularly, and update asset information regularly
Cd / opt/jumpserver
Python manage.py crontab add
Note:
1) enter relevant information according to the prompts to complete the installation. After the installation is complete, please visit web and continue to view the follow-up documents.
2) if startup fails, please return to the upper directory and manually run. / service.sh start to start
3) if. / service.sh start fails to start
Cd / opt/jumpserver
Python manage.py runserver 0.0.0.0:80
Python run_websocket.py
4) if the startup fails, it may be because ports 80 and 3000 are already occupied, or the database account password is incorrect, please check
Then access the ip port 80 set by the machine, and I use 8080:
The last admin password 5Lov@wife set by the user name itself
Take credit after the fight!
This is the answer to the question about the process of building jumpserver. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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: 0
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.