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
bf662144
Commit
bf662144
authored
May 23, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改说明
parent
edec64c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
setup_by_centos7.rst
docs/setup_by_centos7.rst
+8
-8
No files found.
docs/setup_by_centos7.rst
View file @
bf662144
...
@@ -120,12 +120,12 @@ CentOS 7 安装文档
...
@@ -120,12 +120,12 @@ CentOS 7 安装文档
ALLOWED_HOSTS = ['*']
ALLOWED_HOSTS = ['*']
# 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 模式 True为开启 False为关闭,默认开启
# DEBUG 模式 True为开启 False为关闭,默认开启
,生产环境推荐关闭
DEBUG =
Tru
e
DEBUG =
Fals
e
# DEBUG, INFO, WARNING, ERROR, CRITICAL can set. See https://docs.djangoproject.com/en/1.10/topics/logging/
# DEBUG, INFO, WARNING, ERROR, CRITICAL can set. See https://docs.djangoproject.com/en/1.10/topics/logging/
# 日志级别,默认为DEBUG,可调整为INFO, WARNING, ERROR, CRITICAL
# 日志级别,默认为DEBUG,可调整为INFO, WARNING, ERROR, CRITICAL
,默认INFO
LOG_LEVEL = '
DEBU
G'
LOG_LEVEL = '
WARNIN
G'
LOG_DIR = os.path.join(BASE_DIR, 'logs')
LOG_DIR = os.path.join(BASE_DIR, 'logs')
# Database setting, Support sqlite3, mysql, postgres ....
# Database setting, Support sqlite3, mysql, postgres ....
...
@@ -141,14 +141,14 @@ CentOS 7 安装文档
...
@@ -141,14 +141,14 @@ CentOS 7 安装文档
DB_ENGINE = 'mysql'
DB_ENGINE = 'mysql'
DB_HOST = '127.0.0.1'
DB_HOST = '127.0.0.1'
DB_PORT = 3306
DB_PORT = 3306
DB_USER = '
root
'
DB_USER = '
jumpserver
'
DB_PASSWORD = 'somepassword'
DB_PASSWORD = 'somepassword'
DB_NAME = 'jumpserver'
DB_NAME = 'jumpserver'
# When Django start it will bind this host and port
# When Django start it will bind this host and port
# Django 运行的端口和容器,
部署代理服务器后应该
把0.0.0.0修改成127.0.0.1,这里的意思是允许x.x.x.x访问,127.0.0.1表示仅允许自身访问。
# Django 运行的端口和容器,
生产环境推荐
把0.0.0.0修改成127.0.0.1,这里的意思是允许x.x.x.x访问,127.0.0.1表示仅允许自身访问。
# ./manage.py runserver 127.0.0.1:8080
# ./manage.py runserver 127.0.0.1:8080
HTTP_BIND_HOST = '
0.0.0.0
'
HTTP_BIND_HOST = '
127.0.0.1
'
HTTP_LISTEN_PORT = 8080
HTTP_LISTEN_PORT = 8080
# Use Redis as broker for celery and web socket
# Use Redis as broker for celery and web socket
...
@@ -206,7 +206,7 @@ CentOS 7 安装文档
...
@@ -206,7 +206,7 @@ CentOS 7 安装文档
# SECRET_KEY = None
# SECRET_KEY = None
# 设置日志级别 ['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL', 'CRITICAL']
# 设置日志级别 ['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL', 'CRITICAL']
# LOG_LEVEL = '
INFO
'
# LOG_LEVEL = '
WARN
'
# 日志存放的目录
# 日志存放的目录
# LOG_DIR = os.path.join(BASE_DIR, 'logs')
# 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