Simple version of jumpserver bastion machine installation and deployment

1. Hardware configuration: 2 CPU cores, 4G memory, 50G hard disk (minimum)
2. Operating system centos7
3. Download:

cd /opt
yum -y install wget git
git clone --depth=1 https://github.com/jumpserver/setuptools.git
cd setuptools
cp config_example.conf config.conf
vi config.conf

4. Description of the configuration file, note that you cannot use pure numeric strings, if you don’t know the purpose, please don’t modify it

# 以下设置默认情况下不需要修改

# 需要安装的版本
Version=1.5.9

# Jms 加密配置
SECRET_KEY=
BOOTSTRAP_TOKEN=

# 数据库 配置, 如果 数据库 安装在其他的服务器, 请修改下面设置
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=jumpserver
DB_PASSWORD=
DB_NAME=jumpserver

# Redis 配置, 如果 Redis 安装在其他的服务器, 请修改下面设置
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=

# 服务端口设置, 如果云服务器未备案请修改 http_port 端口为其他端口
http_port=80
ssh_port=2222

# 服务安装目录
install_dir=/opt

Server_IP=`ip addr | grep 'state UP' -A2 | grep inet | egrep -v '(127.0.0.1|inet6|docker)' | awk '{print $2}' | tr -d "addr:" | head -n 1 | cut -d / -f1`
Docker_IP=`ip addr | grep docker.* | grep inet | awk '{print $2}' | head -n 1`

5. Installation

./jmsctl.sh install

6, test:
Insert picture description here
7, help

./jmsctl.sh -h

8. Upgrade

cd /opt/setuptools
git pull
./jmsctl.sh upgrade

Guess you like

Origin blog.csdn.net/lq_hello/article/details/106500226
Recommended