部署jumpserver服务
一、前期准备
一个后台程序,基本上都是需要依赖于数据库才能运行,后台程序在启动的时候,代码就回去连接数据库,保证数据库,正确启动,且可以正确连接,否则后台程序是起不来的。
因此需要检查数据库、redis、环境变量等情况
1、netstat -tunlp命令 检查3306:mysql数据库 检查6379:redis数据库
[email protected]:/opt#netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2408/sshd: /usr/sbi
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 8607/redis-server 1
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 875/rpcbind
tcp 0 0 0.0.0.0:10032 0.0.0.0:* LISTEN 1578/java
tcp6 0 0 :::22 :::* LISTEN 2408/sshd: /usr/sbi
tcp6 0 0 :::3306 :::* LISTEN 89110/mysqld
tcp6 0 0 :::111 :::* LISTEN 875/rpcbind
udp 0 0 0.0.0.0:68 0.0.0.0:* 23060/dhclient
udp 0 0 0.0.0.0:111 0.0.0.0:* 875/rpcbind
udp 0 0 10.22.2.160:123 0.0.0.0:* 879/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 879/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 879/ntpd
udp 0 0 0.0.0.0:613 0.0.0.0:* 875/rpcbind
udp6 0 0 :::111 :::* 875/rpcbind
udp6 0 0 :::123 :::* 879/ntpd
udp6 0 0 :::613 :::* 875/rpcbind
[email protected]:/opt#
2、连接mysql数据库,查看数据库jumpserver是否建立完成
[email protected]:/opt#mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.6.49 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| jumpserver |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec)
mysql> exit
Bye
[email protected]:/opt#
3、检查redis运行情况,用ping——pong命令
[email protected]:/opt#redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> exit
[email protected]:/opt#
二、安装Jumpserver
1、获取jumpserver程序的代码,github有公共仓库,所有人都可以下载,私有仓库,只有企业内部人员,用账号密码登录后下载
wget https://github.com/jumpserver/jumpserver/releases/download/v2.1.0/jumpserver-v2.1.0.tar.gz
wget https://github.com/jumpserver/installer/releases/download/v2.28.7/jumpserver-installer-v2.28.7.tar.gz
wget https://cdn0-download-offline-installer.fit2cloud.com/jumpserver/jumpserver-offline-installer-v2.28.7-amd64-2.tar.gz?Expires=1679483450&OSSAccessKeyId=LTAI5tLEMt8jTT4RDrZ9mXns&Signature=jE2vx7QkG3bU42njBgCx6w2DkTc%3D
2、
3、安装运行jumpserver所需要的模块(由python开发的程序,必须安装该程序使用到的一些模块,才能正确运行)
标签:opt,部署,0.0,jumpserver,堡垒,t01,mysql,JumpServer,LISTEN From: https://www.cnblogs.com/Magiclala/p/17140483.html