部署方式基于官网
[root@localhost ~]# curl -sSL https://resource.fit2cloud.com/jumpserver/jumpserver/releases/latest/download/quick_start.sh | bash
warning: /var/cache/yum/x86_64/7/base/packages/wget-1.14-18.el7_6.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for wget-1.14-18.el7_6.1.x86_64.rpm is not installed
Importing GPG key 0xF4A80EB5:
Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) "
Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
Package : centos-release-7-9.2009.0.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
download install script to /opt/jumpserver-installer-v3.4.0
██╗██╗ ██╗███╗ ███╗██████╗ ███████╗███████╗██████╗ ██╗ ██╗███████╗██████╗
██║██║ ██║████╗ ████║██╔══██╗██╔════╝██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗
██║██║ ██║██╔████╔██║██████╔╝███████╗█████╗ ██████╔╝██║ ██║█████╗ ██████╔╝
██ ██║██║ ██║██║╚██╔╝██║██╔═══╝ ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██╔══╝ ██╔══██╗
╚█████╔╝╚██████╔╝██║ ╚═╝ ██║██║ ███████║███████╗██║ ██║ ╚████╔╝ ███████╗██║ ██║
╚════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
Version: v3.4.0
1. Check Configuration File
Path to Configuration file: /opt/jumpserver/config
/opt/jumpserver/config/config.txt [ √ ]
/opt/jumpserver/config/nginx/cert/server.crt [ √ ]
/opt/jumpserver/config/nginx/cert/server.key [ √ ]
complete
.........................
[+] Running 8/8
✔ Container jms_redis Healthy 0.7s
✔ Container jms_mysql Healthy 0.7s
✔ Container jms_core Healthy 37.9s
✔ Container jms_celery Started 38.8s
✔ Container jms_koko Started 39.0s
✔ Container jms_lion Started 38.9s
✔ Container jms_magnus Started 39.3s
✔ Container jms_web Started 38.9s
启动服务
#jumpserver命令格式如下
启动
$ ./jmsctl.sh start
重启
$ ./jmsctl.sh restart
关闭, 不包含数据库
$ ./jmsctl.sh stop
关闭所有
$ ./jmsctl.sh down
备份数据库
$ ./jmsctl.sh backup_db
查看日志
$ ./jmsctl.sh tail
[root@localhost ~]# cd /opt/jumpserver-installer-v3.4.0/
[root@localhost jumpserver-installer-v3.4.0]# ./jmsctl.sh start
[+] Running 8/8
✔ Container jms_redis Healthy 0.5s
✔ Container jms_mysql Healthy 0.5s
✔ Container jms_core Healthy 1.0s
✔ Container jms_web Running 0.0s
✔ Container jms_lion Running 0.0s
✔ Container jms_celery Running 0.0s
✔ Container jms_magnus Running 0.0s
✔ Container jms_koko Running 0.0s
[root@localhost jumpserver-installer-v3.4.0]#
界面访问
地址: http://
用户名: admin
密码: admin
登录后会要求重新设置密码
创建主机
填写主机信息
资产授权
点击web终端查看
加入资产测试成功
官网下载离线软件包
[root@localhost opt]# ls
jumpserver-offline-installer-v3.4.0-amd64-1.tar.gz
[root@localhost opt]# tar -xf jumpserver-offline-installer-v3.4.0-amd64-1.tar.gz
[root@localhost opt]# ls
jumpserver-offline-installer-v3.4.0-amd64-1 jumpserver-offline-installer-v3.4.0-amd64-1.tar.gz
[root@localhost opt]# cd jumpserver-offline-installer-v3.4.0-amd64-1
[root@localhost jumpserver-offline-installer-v3.4.0-amd64-1]# ls
cn-quick_start.sh config-example.txt jmsctl.sh locale README.md static.env
compose config_init LICENSE quick_start.sh scripts utils
[root@localhost jumpserver-offline-installer-v3.4.0-amd64-1]#
安装
[root@localhost jumpserver-offline-installer-v3.4.0-amd64-1]# ./jmsctl.sh install
[root@localhost jumpserver-offline-installer-v3.4.0-amd64-1]# ./jmsctl.sh install
██╗██╗ ██╗███╗ ███╗██████╗ ███████╗███████╗██████╗ ██╗ ██╗███████╗██████╗
██║██║ ██║████╗ ████║██╔══██╗██╔════╝██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗
██║██║ ██║██╔████╔██║██████╔╝███████╗█████╗ ██████╔╝██║ ██║█████╗ ██████╔╝
██ ██║██║ ██║██║╚██╔╝██║██╔═══╝ ╚════██║██╔══╝ ██╔══██╗╚██╗ ██╔╝██╔══╝ ██╔══██╗
╚█████╔╝╚██████╔╝██║ ╚═╝ ██║██║ ███████║███████╗██║ ██║ ╚████╔╝ ███████╗██║ ██║
╚════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝
Version: v3.4.0
1. Check Configuration File
Path to Configuration file: /opt/jumpserver/config
/opt/jumpserver/config/config.txt [ √ ]
/opt/jumpserver/config/nginx/cert/server.crt [ √ ]
/opt/jumpserver/config/nginx/cert/server.key [ √ ]
complete
>>> Install and Configure Docker
1. Install Docker
complete
2. Configure Docker
Do you want to support IPv6? (y/n) (default n): n
complete
3. Start Docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /etc/systemd/system/docker.service.
complete
...................
>>> The Installation is Complete
1. You can use the following command to start, and then visit
cd /opt/jumpserver-offline-installer-v3.4.0-amd64-1
./jmsctl.sh start
2. Other management commands
./jmsctl.sh stop
./jmsctl.sh restart
./jmsctl.sh backup
./jmsctl.sh upgrade
For more commands, you can enter ./jmsctl.sh --help to understand
3. Web access
http://192.168.200.100:80
Default username: admin Default password: admin
4. SSH/SFTP access
ssh -p2222 admin@192.168.200.100
sftp -P2222 admin@192.168.200.100
5. More information
Official Website: https://www.jumpserver.org/
Documentation: https://docs.jumpserver.org/
#出现选择时候,都选择默认选项n即可,使用它自身配置的组件,如果有需要使用自己配置的组件,再config文件中进行配置
启动
[root@localhost jumpserver-offline-installer-v3.4.0-amd64-1]# ./jmsctl.sh start
[+] Running 8/8
✔ Container jms_mysql Healthy 0.7s
✔ Container jms_redis Healthy 0.7s
✔ Container jms_core Healthy 38.5s
✔ Container jms_celery Started 40.5s
✔ Container jms_lion Started 39.6s
✔ Container jms_magnus Started 41.1s
✔ Container jms_web Started 40.5s
✔ Container jms_koko Started 40.5s
[root@localhost jumpserver-offline-installer-v3.4.0-amd64-1]#
浏览器访问
验证成功