From 305221dc57307faf10d2abdc9e66e1b76c985863 Mon Sep 17 00:00:00 2001 From: liuzheng Date: Wed, 28 Feb 2018 16:02:07 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20v0.5.0=20=E5=9F=BA=E4=BA=8E=20CentOS7?= =?UTF-8?q?=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v0.5.0-基于-CentOS7.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/v0.5.0-基于-CentOS7.md b/v0.5.0-基于-CentOS7.md index ca49ed4..bdeef93 100644 --- a/v0.5.0-基于-CentOS7.md +++ b/v0.5.0-基于-CentOS7.md @@ -208,13 +208,30 @@ $ tar xvf luna.tar.gz $ ls /opt/luna ... ``` +### 五. 安装Windows支持组件 -### 五. 配置 nginx 整合各组件 +使用docker启动 guacamole -5.1 安装nginx +```shell +docker run \ + -p 8080:8080 \ + -e JUMPSERVER_SERVER=http://:8080 \ + jumpserver/guacamole +``` + +这里所需要注意的是guacamole暴露出来的端口是8080,若与jumpserver部署在同一主机上自定义一下。 + +修改JUMPSERVER_SERVER的配置,填上jumpserver的内网地址 + + + + +### 六. 配置 nginx 整合各组件 + +6.1 安装nginx 根据喜好选择安装方式和版本 -5.2 配置文件 +6.2 配置文件 ``` server { @@ -245,15 +262,19 @@ server { proxy_set_header Connection "upgrade"; } + location /guacamole/ { + proxy_pass http://:8080/; + } + location / { proxy_pass http://localhost:8080; } } ``` -5.3 运行 nginx +6.3 运行 nginx -5.4 访问 http://192.168.244.144 +6.4 访问 http://192.168.244.144 ## 升级