首页 > 其他分享 >部署堡垒机4——安装JumpServer

部署堡垒机4——安装JumpServer

时间:2023-02-21 12:11:18浏览次数:39  
标签:opt 部署 0.0 jumpserver 堡垒 t01 mysql JumpServer LISTEN

部署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

相关文章

  • java web项目在linux部署、启动,查看系统配置常用的linux命令总结
    本文为博主原创,未经允许不得转载:      以下为在工作中常用的linux命令进行了总结,主要在项目安装及启动,及编辑部署文件时应用较多1.gz文件是一种压缩文件。以·ta......
  • Python项目部署服务器
    Python项目部署服务器1、使用pipreqs,只会生成当前项目使用的依赖pip3installpipreqs2、在当前目录生成requirement依赖。(若当前路径不是项目路径需要将【.】改为项......
  • K8S-kubeadm部署
    一.部署环境master(2C/4G,cpu核心数要求大于2)192.168.61.100docker、kubeadm、kubelet、kubectl、flannelnode01(2C/2G)192.16......
  • windows下dapr的代码调试--非docker部署
    上一篇大概的整理了一下在vm虚拟机下通过docker部署dapr应用,作服务之间调用的例子。今天整理一下windows下dapr的非docker部署调试,毕竟大部分开发不需要花费太多时间做部......
  • GlusterFS环境部署
    这是一篇关于GlusterFS入门文章,主要讲述GlusterFS环境搭建以及初步使用。GlusterFS相关进程glusterfs的进程结构glusterfs:用于客户端挂在的进程glusterfsd:用于数......
  • 部署堡垒机——准备环境
    1、准备环境centos7关闭防火墙firewalld#清空防火墙规则[email protected]:/root#iptables-F#关闭开机自启动防火墙[email protected]......
  • 用kubeadm部署K8S
    一、kubeadm部署K8S集群架构主机名IP地址安装组件master(2C/4G,cpu核心数要求大于2)192.168.2.66docker、kubeadm、kubelet、kubectl、flannelnode01(2C/2G)19......
  • K8S多节点二进制部署
    一、多Maser集群架构的了解Kubernetes作为容器集群系统,通过健康检查+重启策略实现了Pod故障自我修复能力,通过调度算法实现将Pod分布式部署,并保持预期副本数,根据Node失效......
  • kubeadm部署k8s集群(云原生)
    内容预知架构说明1.环境准备2.所有节点安装docker3.所有节点安装kubeadm,kubelet和kubectl4.部署Dashboard5.安装部署与k8s集群对接的Harbor仓库内核参数......
  • 生产环境中redis是怎么部署的?
    你的redis是不是主从架构?集群架构?用了哪种集群方案?有没有用高可用保证?有没有开启持久化机制确保可以进行数据恢复?线上redis给几个G的内存?设置了哪些参数?压测后你们redis......