Skip to content

在动手之前,请确认你的 Linux 主机满足以下硬性条件:

  • 架构:必须是 64 位 系统
  • 内核:Linux 内核版本 3.10 或更高(建议用最新的稳定版内核)
  • 至少8cpu 8G内存 500G硬盘

安装 ​

获取安装包,请从加入QQ群下载。后续安装更新,请进入qq群进行下载

安装Docker容器、镜像 ​

bastionx-base.tar 为Docker安装包,内含 Docker二进制安装包,以及(Elasticsearch、PostgreSQL)镜像,及安装脚本。安装步骤如下:

  1. 解压 bastionx-base.tar;

  2. 进入解压后的目录,执行 install-docker.sh;

  3. 脚本将自动完成安装后,重启系统。

js
[root@bastionx ~]# tar xvf bastionx-base.tar 
bastionx-base/
bastionx-base/docker-compose
bastionx-base/docker.tgz
bastionx-base/images/
bastionx-base/images/es.tar
bastionx-base/images/postgres.tar
bastionx-base/install-docker.sh
bastionx-base/下载地址
bastionx-base/docker/
bastionx-base/docker/containerd
bastionx-base/docker/runc
bastionx-base/docker/containerd-shim-runc-v2
bastionx-base/docker/docker
bastionx-base/docker/docker-proxy
bastionx-base/docker/ctr
bastionx-base/docker/dockerd
bastionx-base/docker/docker-init
[root@bastionx ~]# ls
anaconda-ks.cfg  bastionx-0.6.0.tar  bastionx-base  bastionx-base.tar
[root@bastionx ~]# cd bastionx-base 
[root@bastionx bastionx-base]# 
[root@bastionx bastionx-base]# ls
docker  docker-compose  docker.tgz  images  install-docker.sh  下载地址
[root@bastionx bastionx-base]# ./install-docker.sh  
关闭并禁用 SELinux
安装docker
docker/
docker/containerd
docker/runc
docker/containerd-shim-runc-v2
docker/docker
docker/docker-proxy
docker/ctr
docker/dockerd
docker/docker-init
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /etc/systemd/system/docker.service.
Docker 安装完成
安装docker-compose
Docker Compose version v5.6.0
docker-compose 安装完成
导入镜像
Loaded image: elasticsearch:9.5.5
/root/bastionx-base/images/es.tar 镜像导入完成
Loaded image: postgres:18.6
/root/bastionx-base/images/postgres.tar 镜像导入完成
所有镜像导入完成
Docker 安装完成, 请重启系统再进行后续使用安装!
[root@bastionx bastionx-base]# reboot 

安装应用系统 ​

系统安装包名称一般为 bastionx-x.y.z.zip ,其中 x.y.z 为版本号。

只需要执行三条命令即可安装完成,安装完成后,可以直接访问web

bash
unzip bastionx-0.6.0.tar
cd bastionx-0.6.0
bash install.sh

web默认账号密码

  • 账号:admin
  • 密码:admin
js
[root@bastionx ~]# tar xvf bastionx-0.6.0.tar  
bastionx-0.6.0/
bastionx-0.6.0/docker-compose.yml
bastionx-0.6.0/install.sh
bastionx-0.6.0/uninstall.sh
bastionx-0.6.0/config/
bastionx-0.6.0/config/emailBackupPasswordTpl.html
bastionx-0.6.0/config/emailTestTpl.html
bastionx-0.6.0/config/rdp-proxy.ini
bastionx-0.6.0/config/tui-proxy.ini
bastionx-0.6.0/config/email2faTpl.html
bastionx-0.6.0/config/icons/
bastionx-0.6.0/config/icons/linux.svg
bastionx-0.6.0/config/icons/windows.svg
bastionx-0.6.0/config/icons/rockyLinux.svg
bastionx-0.6.0/config/icons/ubuntu.svg
bastionx-0.6.0/config/icons/linuxMint.svg
bastionx-0.6.0/config/sms_script.sh
bastionx-0.6.0/config/server.ini
bastionx-0.6.0/images/
bastionx-0.6.0/images/bastionx-server:0.6.0.tar
bastionx-0.6.0/images/bastionx-web:0.6.0.tar
bastionx-0.6.0/images/bastionx-tuiproxy:0.6.0.tar
bastionx-0.6.0/images/bastionx-rdpporxy:0.6.0.tar
bastionx-0.6.0/nginx/
bastionx-0.6.0/nginx/conf/
bastionx-0.6.0/nginx/conf/mime.types
bastionx-0.6.0/nginx/conf/nginx.conf
bastionx-0.6.0/nginx/downloads/
bastionx-0.6.0/nginx/downloads/BastionX-Client.msi
bastionx-0.6.0/bin/
bastionx-0.6.0/bin/host-agent
[root@bastionx ~]# 
[root@bastionx ~]# 
[root@bastionx ~]# cd bastionx-0.6.0
[root@bastionx bastionx-0.6.0]# ls
bin  config  docker-compose.yml  images  install.sh  nginx  uninstall.sh
[root@bastionx bastionx-0.6.0]# ./install.sh  
生成一机一SSL证书
....+...+.....+......+.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..+.........+................+.........+..+.......+...+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*........+...............+..+....+...........+......+......................+.....+.+...........+......+....+...+..+.........+.+.....+.........+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......+...+.....+.+.....+.+........+......+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..............+....+...+............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.................+...+.+..+....+.....+.........+....+...+.........+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
SSL证书完成!
  耗时 生成SSL证书: 0 秒
初始化配置文件
Created symlink /etc/systemd/system/multi-user.target.wants/host-agent.service → /etc/systemd/system/host-agent.service.
  耗时 初始化配置与host-agent: 0 秒
导入镜像
Loaded image: bastionx-rdpporxy:0.6.0
/root/bastionx-0.6.0/images/bastionx-rdpporxy:0.6.0.tar 镜像导入完成
Loaded image: bastionx-server:0.6.0
/root/bastionx-0.6.0/images/bastionx-server:0.6.0.tar 镜像导入完成
Loaded image: bastionx-tuiproxy:0.6.0
/root/bastionx-0.6.0/images/bastionx-tuiproxy:0.6.0.tar 镜像导入完成
Loaded image: bastionx-web:0.6.0
/root/bastionx-0.6.0/images/bastionx-web:0.6.0.tar 镜像导入完成
所有镜像导入完成
  耗时 导入镜像: 7 秒
启动服务
[+] up 7/7
 ✔ Network bastionx-net             Created                                                                                                                    0.1s
 ✔ Container bastionx-tui-proxy     Started                                                                                                                   23.1s
 ✔ Container bastionx-elasticsearch Started                                                                                                                   23.6s
 ✔ Container bastionx-rdp-proxy     Started                                                                                                                   22.8s
 ✔ Container bastionx-postgres      Started                                                                                                                   23.3s
 ✔ Container bastionx-server        Started                                                                                                                    1.7s
 ✔ Container bastionx-web           Started                                                                                                                    2.1s
所有服务启动完成
  耗时 启动服务: 25 秒
初始化ES
ES已就绪,开始创建索引
  耗时 等待ES就绪: 33 秒
{"acknowledged":true,"shards_acknowledged":true,"index":"login_logs"}{"acknowledged":true,"shards_acknowledged":true,"index":"config_audit_logs"}{"acknowledged":true,"shards_acknowledged":true,"index":"session_logs"}{"acknowledged":true,"shards_acknowledged":true,"index":"file_transfer_logs"}{"acknowledged":true,"shards_acknowledged":true,"index":"session_tui_events"}{"acknowledged":true,"shards_acknowledged":true,"index":"session_gui_events"}  耗时 创建ES索引: 1 秒
总耗时: 1 分 6 秒
[root@bastionx bastionx-0.6.0]#  

申请授权 ​

安装完成后请点击这里免费申请授权文件