Commit a5179b56 authored by wojiushixiaobai's avatar wojiushixiaobai

修正部分内容

parent 83a9c1f8
......@@ -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"
......
......@@ -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
......
......@@ -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 编译安装**
::
......
......@@ -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 配置文件**
......
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