Commit 69a27762 authored by wojiushixiaobai's avatar wojiushixiaobai

修改文档

parent c67890d7
分布式部署文档 - 局域网部署说明 分布式部署文档 - 环境说明
-------------------------------------------------------- --------------------------------------------------------
说明 说明
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
说明 说明
~~~~~~~ ~~~~~~~
- # 开头的行表示注释 - # 开头的行表示注释
- > 开头的行表示需要在 mysql 中执行
- $ 开头的行表示需要执行的命令 - $ 开头的行表示需要执行的命令
环境 环境
...@@ -31,6 +30,8 @@ ...@@ -31,6 +30,8 @@
# 设置 http 访问权限 # 设置 http 访问权限
$ setsebool -P httpd_can_network_connect 1 $ setsebool -P httpd_can_network_connect 1
::
# 安装 nginx # 安装 nginx
$ vim /etc/yum.repos.d/nginx.repo $ vim /etc/yum.repos.d/nginx.repo
...@@ -42,6 +43,8 @@ ...@@ -42,6 +43,8 @@
# 非 Centos7 请参考 http://nginx.org/en/linux_packages.html#stable # 非 Centos7 请参考 http://nginx.org/en/linux_packages.html#stable
::
$ yum -y install nginx $ yum -y install nginx
$ systemctl enable nginx $ systemctl enable nginx
...@@ -207,4 +210,21 @@ ...@@ -207,4 +210,21 @@
$ nginx -t $ nginx -t
$ systemctl start nginx $ systemctl start nginx
# 访问 http://192.168.100.100
# 默认账号: admin 密码: admin 到会话管理-终端管理 接受 Coco Guacamole 等应用的注册
# 测试连接
$ ssh -p2222 admin@192.168.100.100
$ sftp -P2222 admin@192.168.100.100
密码: admin
# 如果是用在 Windows 下,Xshell Terminal 登录语法如下
$ ssh admin@192.168.100.100 2222
$ sftp admin@192.168.100.100 2222
密码: admin
如果能登陆代表部署成功
# sftp默认上传的位置在资产的 /tmp 目录下
# windows拖拽上传的位置在资产的 Guacamole RDP上的 G 目录下
后续的使用请参考 `快速入门 <admin_create_asset.html>`_
如遇到问题可参考 `FAQ <faq.html>`_
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
~~~~~~~ ~~~~~~~
- # 开头的行表示注释 - # 开头的行表示注释
- $ 开头的行表示需要执行的命令 - $ 开头的行表示需要执行的命令
- > 开头的行表示需要在数据库中执行
环境 环境
~~~~~~~ ~~~~~~~
...@@ -40,3 +41,5 @@ ...@@ -40,3 +41,5 @@
> grant all on jumpserver.* to 'jumpserver'@'192.168.100.11' identified by 'somepassword'; > grant all on jumpserver.* to 'jumpserver'@'192.168.100.11' identified by 'somepassword';
> flush privileges; > flush privileges;
> quit > quit
# 数据库的主从设置请参考其官方,之后会补上
...@@ -200,3 +200,5 @@ ...@@ -200,3 +200,5 @@
# 新版本更新了运行脚本,使用方式./jms start|stop|status all 后台运行请添加 -d 参数 # 新版本更新了运行脚本,使用方式./jms start|stop|status all 后台运行请添加 -d 参数
# 访问 http://192.168.100.11 默认账号: admin 密码: admin # 访问 http://192.168.100.11 默认账号: admin 密码: admin
# 多节点部署,请参考此文档,设置数据库时请选择从库,其他的一样
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
# Jumpserver项目的url, api请求注册会使用, 如果Jumpserver没有运行在127.0.0.1:8080,请修改此处 # Jumpserver项目的url, api请求注册会使用, 如果Jumpserver没有运行在127.0.0.1:8080,请修改此处
# CORE_HOST = os.environ.get("CORE_HOST") or 'http://127.0.0.1:8080' # CORE_HOST = os.environ.get("CORE_HOST") or 'http://127.0.0.1:8080'
CORE_HOST = 'http://127.0.0.1:8080' CORE_HOST = 'http://192.168.100.100'
# 启动时绑定的ip, 默认 0.0.0.0 # 启动时绑定的ip, 默认 0.0.0.0
# BIND_HOST = '0.0.0.0' # BIND_HOST = '0.0.0.0'
...@@ -142,3 +142,5 @@ ...@@ -142,3 +142,5 @@
# 新版本更新了运行脚本,使用方式./jms start|stop|status all 后台运行请添加 -d 参数 # 新版本更新了运行脚本,使用方式./jms start|stop|status all 后台运行请添加 -d 参数
# 访问 http://192.168.100.100/terminal/terminal/ 接受 coco 注册 # 访问 http://192.168.100.100/terminal/terminal/ 接受 coco 注册
# 多节点部署请参考此文档,部署方式一样
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
jumpserver/guacamole:latest jumpserver/guacamole:latest
# 访问 http://192.168.100.100/terminal/terminal/ 接受 guacamole 注册 # 访问 http://192.168.100.100/terminal/terminal/ 接受 guacamole 注册
# 多节点部署请参考此文档,部署方式一样,不需要做任何修改
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment