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
7d16d7ae
Unverified
Commit
7d16d7ae
authored
Nov 26, 2018
by
wojiushixiaobai
Committed by
GitHub
Nov 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2090 from wojiushixiaobai/docs
[Update]更新
parents
319a19c5
5521ce5b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
start_automatically.rst
docs/start_automatically.rst
+7
-4
upgrade.rst
docs/upgrade.rst
+12
-7
No files found.
docs/start_automatically.rst
View file @
7d16d7ae
...
...
@@ -147,6 +147,7 @@ Systemd 管理启动 Jumpserver
[Unit]
Description=jms
After=network.target mariadb.service redis.service
Wants=mariadb.service redis.service
[Service]
Type=forking
...
...
@@ -165,6 +166,7 @@ Systemd 管理启动 Jumpserver
[Unit]
Description=coco
After=network.target jms.service
Wants=jms.service
[Service]
Type=forking
...
...
@@ -183,8 +185,9 @@ Systemd 管理启动 Jumpserver
$ sed -i '143i CATALINA_PID="$CATALINA_BASE/tomcat.pid"' /config/tomcat8/bin/catalina.sh
$ cat << EOF > /usr/lib/systemd/system/tomcat.service
[Unit]
Description=
Apache Tomcat 8
Description=
guacamole
After=network.target jms.service
Wants=jms.service
[Service]
Type=forking
...
...
@@ -202,14 +205,14 @@ Systemd 管理启动 Jumpserver
# 开机自启设置
$ systemctl enable jms
$ systemctl enable coco
$ systemctl enable
tomcat
$ systemctl enable
guacamole
# 启动
$ systemctl start jms
$ systemctl start coco
$ systemctl start
tomcat
$ systemctl start
guacamole
# 停止
$ systemctl stop jms
$ systemctl stop coco
$ systemctl stop
tomcat
$ systemctl stop
guacamole
docs/upgrade.rst
View file @
7d16d7ae
...
...
@@ -217,6 +217,8 @@
fi
done
$ sh utils/clean_migrations.sh
.. code-block:: shell
$ cd /opt/jumpserver
...
...
@@ -263,12 +265,14 @@
# Development env open this, when error occur display the full process track, Production disable it
# DEBUG 模式 开启DEBUG后遇到错误时可以看到更多日志
# DEBUG = False
# DEBUG = True
DEBUG = False
# DEBUG, INFO, WARNING, ERROR, CRITICAL can set. See https://docs.djangoproject.com/en/1.10/topics/logging/
# 日志级别
# LOG_LEVEL = '
ERROR
'
# LOG_LEVEL = '
DEBUG
'
# LOG_DIR = os.path.join(BASE_DIR, 'logs')
LOG_LEVEL = 'ERROR'
# Database setting, Support sqlite3, mysql, postgres ....
# 数据库设置
...
...
@@ -379,14 +383,15 @@
# NAME = "localhost"
NAME = "coco"
# Bootstrap Token, 预共享秘钥, 用来注册coco使用的service account和terminal
# 请和jumpserver 配置文件中保持一致,注册完成后可以删除
# BOOTSTRAP_TOKEN = "9JO4#n!Xup2zKZ6V"
# 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 = 'http://127.0.0.1:8080'
# Bootstrap Token, 预共享秘钥, 用来注册coco使用的service account和terminal
# 请和jumpserver 配置文件中保持一致,注册完成后可以删除
# BOOTSTRAP_TOKEN = "PleaseChangeMe"
BOOTSTRAP_TOKEN = "9JO4#n!Xup2zKZ6V"
# 启动时绑定的ip, 默认 0.0.0.0
# BIND_HOST = '0.0.0.0'
...
...
@@ -408,7 +413,7 @@
# 设置日志级别 ['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL', 'CRITICAL']
# LOG_LEVEL = 'INFO'
LOG_LEVEL = '
WARN
'
LOG_LEVEL = '
ERROR
'
# 日志存放的目录
# LOG_DIR = os.path.join(BASE_DIR, 'logs')
...
...
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