Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
845c3e05
Commit
845c3e05
authored
Dec 01, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
8559503b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
start_automatically.rst
docs/start_automatically.rst
+1
-0
upgrade.rst
docs/upgrade.rst
+12
-6
No files found.
docs/start_automatically.rst
View file @
845c3e05
...
@@ -169,6 +169,7 @@ Systemd 管理启动 Jumpserver
...
@@ -169,6 +169,7 @@ Systemd 管理启动 Jumpserver
[Service]
[Service]
Type=forking
Type=forking
PIDFile=/opt/coco/coco.pid
Environment="PATH=/opt/py3/bin"
Environment="PATH=/opt/py3/bin"
ExecStart=/opt/coco/cocod start -d
ExecStart=/opt/coco/cocod start -d
ExecReload=
ExecReload=
...
...
docs/upgrade.rst
View file @
845c3e05
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
# SECURITY WARNING: keep the bootstrap token used in production secret!
# SECURITY WARNING: keep the bootstrap token used in production secret!
# 预共享Token coco和guacamole用来注册服务账号,不在使用原来的注册接受机制
# 预共享Token coco和guacamole用来注册服务账号,不在使用原来的注册接受机制
BOOTSTRAP_TOKEN = '
9JO4#n!Xup2zKZ6V
'
BOOTSTRAP_TOKEN = '
nwv4RdXpM82LtSvm
'
# Development env open this, when error occur display the full process track, Production disable it
# Development env open this, when error occur display the full process track, Production disable it
# DEBUG 模式 开启DEBUG后遇到错误时可以看到更多日志
# DEBUG 模式 开启DEBUG后遇到错误时可以看到更多日志
...
@@ -273,6 +273,12 @@
...
@@ -273,6 +273,12 @@
# LOG_DIR = os.path.join(BASE_DIR, 'logs')
# LOG_DIR = os.path.join(BASE_DIR, 'logs')
LOG_LEVEL = 'ERROR'
LOG_LEVEL = 'ERROR'
# Session expiration setting, Default 24 hour, Also set expired on on browser close
# 浏览器Session过期时间,默认24小时, 也可以设置浏览器关闭则过期
# SESSION_COOKIE_AGE = 3600 * 24
# SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
# Database setting, Support sqlite3, mysql, postgres ....
# Database setting, Support sqlite3, mysql, postgres ....
# 数据库设置
# 数据库设置
# See https://docs.djangoproject.com/en/1.10/ref/settings/#databases
# See https://docs.djangoproject.com/en/1.10/ref/settings/#databases
...
@@ -389,7 +395,7 @@
...
@@ -389,7 +395,7 @@
# Bootstrap Token, 预共享秘钥, 用来注册coco使用的service account和terminal
# Bootstrap Token, 预共享秘钥, 用来注册coco使用的service account和terminal
# 请和jumpserver 配置文件中保持一致,注册完成后可以删除
# 请和jumpserver 配置文件中保持一致,注册完成后可以删除
# BOOTSTRAP_TOKEN = "PleaseChangeMe"
# BOOTSTRAP_TOKEN = "PleaseChangeMe"
BOOTSTRAP_TOKEN = "
9JO4#n!Xup2zKZ6
V"
BOOTSTRAP_TOKEN = "
nwv4RdXpM82LtSvm
V"
# 启动时绑定的ip, 默认 0.0.0.0
# 启动时绑定的ip, 默认 0.0.0.0
# BIND_HOST = '0.0.0.0'
# BIND_HOST = '0.0.0.0'
...
@@ -478,8 +484,8 @@
...
@@ -478,8 +484,8 @@
$ tar xf linux-amd64.tar.gz -C /bin/
$ tar xf linux-amd64.tar.gz -C /bin/
$ chmod +x /bin/ssh-forward
$ chmod +x /bin/ssh-forward
$ export BOOTSTRAP_TOKEN=
9JO4#n!Xup2zKZ6
V
$ export BOOTSTRAP_TOKEN=
nwv4RdXpM82LtSvm
V
$ echo "export BOOTSTRAP_TOKEN=
9JO4#n!Xup2zKZ6
V" >> ~/.bashrc
$ echo "export BOOTSTRAP_TOKEN=
nwv4RdXpM82LtSvm
V" >> ~/.bashrc
$ /etc/init.d/guacd start
$ /etc/init.d/guacd start
$ sh /config/tomcat8/bin/startup.sh
$ sh /config/tomcat8/bin/startup.sh
...
@@ -509,8 +515,8 @@
...
@@ -509,8 +515,8 @@
$ docker rm jms_guacamole
$ docker rm jms_guacamole
$ docker pull wojiushixiaobai/coco:1.4.5
$ docker pull wojiushixiaobai/coco:1.4.5
$ docker pull wojiushixiaobai/guacamole:1.4.5
$ docker pull wojiushixiaobai/guacamole:1.4.5
$ docker run --name jms_coco -d -p 2222:2222 -p 5000:5000 -e CORE_HOST=http://<Jumpserver_url> -e BOOTSTRAP_TOKEN=
9JO4#n!Xup2zKZ6
V wojiushixiaobai/coco:1.4.5
$ docker run --name jms_coco -d -p 2222:2222 -p 5000:5000 -e CORE_HOST=http://<Jumpserver_url> -e BOOTSTRAP_TOKEN=
nwv4RdXpM82LtSvm
V wojiushixiaobai/coco:1.4.5
$ docker run --name jms_guacamole -d -p 8081:8081 -e JUMPSERVER_SERVER=http://<Jumpserver_url> -e BOOTSTRAP_TOKEN=
9JO4#n!Xup2zKZ6
V wojiushixiaobai/guacamole:1.4.5
$ docker run --name jms_guacamole -d -p 8081:8081 -e JUMPSERVER_SERVER=http://<Jumpserver_url> -e BOOTSTRAP_TOKEN=
nwv4RdXpM82LtSvm
V wojiushixiaobai/guacamole:1.4.5
# 到 Web 会话管理 - 终端管理 查看组件是否已经在线
# 到 Web 会话管理 - 终端管理 查看组件是否已经在线
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment