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
a5179b56
Commit
a5179b56
authored
May 14, 2018
by
wojiushixiaobai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正部分内容
parent
83a9c1f8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
faq.rst
docs/faq.rst
+11
-5
setup_by_centos7.rst
docs/setup_by_centos7.rst
+1
-1
setup_by_ubuntu.rst
docs/setup_by_ubuntu.rst
+4
-0
step_by_step.rst
docs/step_by_step.rst
+2
-1
No files found.
docs/faq.rst
View file @
a5179b56
...
...
@@ -93,12 +93,16 @@ FAQ
# Centos7
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=
zh_CN.UTF-8
' > /etc/locale.conf
$ echo 'LANG=
"zh_CN.UTF-8"
' > /etc/locale.conf
# Centos6
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=zh_CN.UTF-8' > /etc/sysconfig/i18n
$ echo 'LANG="zh_CN.UTF-8"' > /etc/sysconfig/i18n
# Ubuntu
$ apt-get install language-pack-zh-hanscd
$ echo 'LANG="zh_CN.UTF-8"' > /etc/default/locale
如果任然报input/output error,尝试执行 yum update 后重启服务器(仅测试中参考使用,实际运营服务器请谨慎操作)
...
...
@@ -213,10 +217,12 @@ FAQ
(14). 设置浏览器过期
$ vim /opt/jumpserver/apps/jumpserver/settings.py
# 找到如下行,注释(可参考 django 设置 session 过期时间)
# 找到如下行,注释(可参考 django 设置 session 过期时间),修改或者新增你要的设置即可
# SESSION_COOKIE_AGE = CONFIG.SESSION_COOKIE_AGE or 3600 * 24
# 如下,设置关闭浏览器 cookie 失效,则修改为
# SESSION_COOKIE_AGE = CONFIG.SESSION_COOKIE_AGE or 3600 * 24
# 如下,设置关闭浏览器 cookie 失效
# SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
(15.) 测试连接、推送、硬件刷新一直显示.....................
# 检测 /etc/locale.conf 是否是 LANG="zh_CN.UTF-8"
...
...
docs/setup_by_centos7.rst
View file @
a5179b56
...
...
@@ -32,7 +32,7 @@ CentOS 7 安装文档
# 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=
zh_CN.UTF-8
' > /etc/locale.conf
$ echo 'LANG=
"zh_CN.UTF-8"
' > /etc/locale.conf
# 安装依赖包
$ yum -y install wget sqlite-devel xz gcc automake zlib-devel openssl-devel epel-release git
...
...
docs/setup_by_ubuntu.rst
View file @
a5179b56
...
...
@@ -23,6 +23,10 @@
$ apt-get update && apt-get -y upgrade
$ apt-get -y install wget libkrb5-dev libsqlite3-dev gcc make automake libssl-dev zlib1g-dev libmysqlclient-dev libffi-dev git
# 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文
$ apt-get install language-pack-zh-hans
$ echo 'LANG="zh_CN.UTF-8"' > /etc/default/locale
**1.2 编译安装**
::
...
...
docs/step_by_step.rst
View file @
a5179b56
...
...
@@ -18,7 +18,7 @@
# 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=
zh_CN.UTF-8
' > /etc/locale.conf
$ echo 'LANG=
"zh_CN.UTF-8"
' > /etc/locale.conf
# CentOS6
$ setenforce 0
...
...
@@ -138,6 +138,7 @@ Pip 加速设置请参考 <https://segmentfault.com/a/1190000011875306>
$ mysql
> create database jumpserver default charset 'utf8';
> grant all on jumpserver.* to 'jumpserver'@'127.0.0.1' identified by 'somepassword';
> flush privileges;
**2.7 修改 Jumpserver 配置文件**
...
...
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