分布式部署文档 - guacamole 部署

说明

  • 开头的行表示注释

  • $ 开头的行表示需要执行的命令

环境

  • 系统: CentOS 7
  • IP: 192.168.100.50
    ProtocolServerNameIPPortUsed By
    TCPGuacamole192.168.100.408081Nginx
    TCPGuacamole1192.168.100.408082Nginx

开始安装

  1. # 升级系统
  2. $ yum upgrade -y
  3.  
  4. # 设置防火墙, 开放 8081 端口 给 nginx 访问
  5. $ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="8081" accept"
  6. $ firewall-cmd --reload
  7.  
  8. # 安装 docker
  9. $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
  10. $ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  11. $ yum makecache fast
  12. $ yum -y install docker-ce
  13. $ curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
  14. $ systemctl enable docker
  15. $ systemctl start docker
  16.  
  17. # 通过 docker 部署
  18. $ docker run --name jms_guacamole -d \
  19. -p 8081:8081 \
  20. -e JUMPSERVER_KEY_DIR=/config/guacamole/key \
  21. -e JUMPSERVER_SERVER=http://192.168.100.30:8080 \
  22. -e BOOTSTRAP_TOKEN=你的token \
  23. jumpserver/jms_guacamole:1.4.8
  24.  
  25. # 访问 http://192.168.100.100/terminal/terminal/ 检查 guacamole 注册

多节点部署

  1. $ firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.100.100" port protocol="tcp" port="8082" accept"
  2. $ firewall-cmd --reload
  3. $ docker run --name jms_guacamole1 -d \
  4. -p 8082:8081 \
  5. -e JUMPSERVER_KEY_DIR=/config/guacamole/key \
  6. -e JUMPSERVER_SERVER=http://192.168.100.30:8080 \
  7. -e BOOTSTRAP_TOKEN=你的token \
  8. jumpserver/jms_guacamole:1.4.8
  9.  
  10. # 访问 http://192.168.100.100/terminal/terminal/ 检查 guacamole 注册