From 431a8ed723e5ac8de8cf2315b371497aee89a8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Mon, 7 May 2018 20:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=A0=87=E9=A2=98=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/git/Git(1) - 初见.md | 2 +- source/_posts/git/Git(2) - 基础操作.md | 2 +- source/_posts/git/Git(3) - 分支.md | 2 +- source/_posts/git/Git(4) - 远程仓库.md | 2 +- .../_posts/linux/1.1 linux常用命令与技巧(1).md | 2 +- source/_posts/linux/2.0 shell编程(1)-初见.md | 2 +- .../linux/2.1 shell编程(2)-从入门到重新入门.md | 2 +- .../linux/2.2 shell编程(3)-流程控制&函数.md | 2 +- ...l(4)-使用技巧.md => 2.3 shell(4)-使用技巧.md} | 2 +- source/_posts/linux/3.1 Docker(1)-初见.md | 2 +- source/_posts/linux/3.2 Docker(2)-使用技巧.md | 16 ++++++++++++++-- .../linux/3.3 Docker(3)-WordPress部署实践.md | 2 +- source/_posts/前端杂烩/CSS布局(2) - Flex.md | 2 +- source/_posts/前端杂烩/CSS布局(3) - Flex实践.md | 2 +- source/_posts/前端杂烩/CSS布局(4) - Grid.md | 2 +- source/_posts/前端杂烩/SASS - 初见.md | 2 +- source/_posts/前端杂烩/SASS - 语法(1).md | 2 +- source/_posts/前端杂烩/SASS - 语法(2).md | 2 +- 18 files changed, 31 insertions(+), 19 deletions(-) rename source/_posts/linux/{2.4 shell(4)-使用技巧.md => 2.3 shell(4)-使用技巧.md} (92%) diff --git a/source/_posts/git/Git(1) - 初见.md b/source/_posts/git/Git(1) - 初见.md index 29ed808..28e8ff8 100644 --- a/source/_posts/git/Git(1) - 初见.md +++ b/source/_posts/git/Git(1) - 初见.md @@ -1,5 +1,5 @@ --- -title: Git(1) - 初见 +title: Git(1)-初见 date: 2018-4-18 02:35:13 tags: - git diff --git a/source/_posts/git/Git(2) - 基础操作.md b/source/_posts/git/Git(2) - 基础操作.md index ef1baa4..d240ab8 100644 --- a/source/_posts/git/Git(2) - 基础操作.md +++ b/source/_posts/git/Git(2) - 基础操作.md @@ -1,5 +1,5 @@ --- -title: Git(2) - 基础操作 +title: Git(2)-基础操作 date: 2018-4-18 08:22:13 tags: - git diff --git a/source/_posts/git/Git(3) - 分支.md b/source/_posts/git/Git(3) - 分支.md index 331a3c1..5ee34a2 100644 --- a/source/_posts/git/Git(3) - 分支.md +++ b/source/_posts/git/Git(3) - 分支.md @@ -1,5 +1,5 @@ --- -title: Git(2) - 基础操作 +title: Git(2)-基础操作 date: 2018-4-18 09:20:13 tags: - git diff --git a/source/_posts/git/Git(4) - 远程仓库.md b/source/_posts/git/Git(4) - 远程仓库.md index 75b4dbf..471ce1e 100644 --- a/source/_posts/git/Git(4) - 远程仓库.md +++ b/source/_posts/git/Git(4) - 远程仓库.md @@ -1,5 +1,5 @@ --- -title: Git(4) - 远程仓库 +title: Git(4)-远程仓库 date: 2018-4-19 00:20:13 tags: - git diff --git a/source/_posts/linux/1.1 linux常用命令与技巧(1).md b/source/_posts/linux/1.1 linux常用命令与技巧(1).md index 9e452a9..59f7db5 100644 --- a/source/_posts/linux/1.1 linux常用命令与技巧(1).md +++ b/source/_posts/linux/1.1 linux常用命令与技巧(1).md @@ -1,5 +1,5 @@ --- -title: 1.1 linux常用命令与技巧(1) +title: 1.1、linux常用命令与技巧(1) date: 2018-5-3 00:52:22 tags: linux categories: diff --git a/source/_posts/linux/2.0 shell编程(1)-初见.md b/source/_posts/linux/2.0 shell编程(1)-初见.md index f1589c8..6554ce8 100644 --- a/source/_posts/linux/2.0 shell编程(1)-初见.md +++ b/source/_posts/linux/2.0 shell编程(1)-初见.md @@ -1,5 +1,5 @@ --- -title: 2.0 shell编程(1)-初见 +title: 2.0、shell编程(1)-初见 date: 2018-5-5 22:38:32 tags: - linux diff --git a/source/_posts/linux/2.1 shell编程(2)-从入门到重新入门.md b/source/_posts/linux/2.1 shell编程(2)-从入门到重新入门.md index 3af5d96..e5710e0 100644 --- a/source/_posts/linux/2.1 shell编程(2)-从入门到重新入门.md +++ b/source/_posts/linux/2.1 shell编程(2)-从入门到重新入门.md @@ -1,5 +1,5 @@ --- -title: 2.1 shell编程(2)-从入门到重新入门 +title: 2.1、shell编程(2)-从入门到重新入门 date: 2018-5-5 00:52:22 tags: - linux diff --git a/source/_posts/linux/2.2 shell编程(3)-流程控制&函数.md b/source/_posts/linux/2.2 shell编程(3)-流程控制&函数.md index b02e952..8ea26c2 100644 --- a/source/_posts/linux/2.2 shell编程(3)-流程控制&函数.md +++ b/source/_posts/linux/2.2 shell编程(3)-流程控制&函数.md @@ -1,5 +1,5 @@ --- -title: shell编程(3)-流程控制&函数 +title: 2.2、shell编程(3)-流程控制&函数 date: 2018-5-6 00:52:22 tags: - linux diff --git a/source/_posts/linux/2.4 shell(4)-使用技巧.md b/source/_posts/linux/2.3 shell(4)-使用技巧.md similarity index 92% rename from source/_posts/linux/2.4 shell(4)-使用技巧.md rename to source/_posts/linux/2.3 shell(4)-使用技巧.md index c420609..3c42493 100644 --- a/source/_posts/linux/2.4 shell(4)-使用技巧.md +++ b/source/_posts/linux/2.3 shell(4)-使用技巧.md @@ -1,5 +1,5 @@ --- -title: shell(4)-使用技巧 +title: 2.3、shell(4)-使用技巧 date: 2018-5-6 00:52:25 tags: - linux diff --git a/source/_posts/linux/3.1 Docker(1)-初见.md b/source/_posts/linux/3.1 Docker(1)-初见.md index 73d9396..979dada 100644 --- a/source/_posts/linux/3.1 Docker(1)-初见.md +++ b/source/_posts/linux/3.1 Docker(1)-初见.md @@ -1,5 +1,5 @@ --- -title: 3.1 Docker(1)-初见 +title: 3.1、Docker(1)-初见 date: 2018-5-8 22:38:32 tags: - linux diff --git a/source/_posts/linux/3.2 Docker(2)-使用技巧.md b/source/_posts/linux/3.2 Docker(2)-使用技巧.md index ba48f04..970e26e 100644 --- a/source/_posts/linux/3.2 Docker(2)-使用技巧.md +++ b/source/_posts/linux/3.2 Docker(2)-使用技巧.md @@ -1,5 +1,5 @@ --- -title: 3.2 Docler(2)-使用技巧 +title: 3.2、Docker(2)-使用技巧 date: 2018-5-9 22:38:32 tags: - linux @@ -39,4 +39,16 @@ docker export [ContainerId] > demo.tar # 导入容器 docker import demo.tar [ImageName][:Tag] -``` \ No newline at end of file +``` + +### 容器内时区的错误 +如果容器当中的程序在执行中需要获取当前时间并进行格式化 +若没有特别指定 , 通常会读取操作系统的时区设定 +由于容器内是一个独立的环境 , 这个设定有可能不正确 + +如果出现这类错误( 比如程序获取当前时间写入到数据库 , 时间提前了8小时 ) +可以在构建镜像的时候执行如下命令 , 来指定容器内的时区 +```bash +echo "Asia/Shanghai" > /etc/timezone +``` +也就是设定时区为东八区 \ No newline at end of file diff --git a/source/_posts/linux/3.3 Docker(3)-WordPress部署实践.md b/source/_posts/linux/3.3 Docker(3)-WordPress部署实践.md index 921cce0..6df550a 100644 --- a/source/_posts/linux/3.3 Docker(3)-WordPress部署实践.md +++ b/source/_posts/linux/3.3 Docker(3)-WordPress部署实践.md @@ -1,5 +1,5 @@ --- -title: 3.3 Docker(3)-部署wordpress实践 +title: 3.3、Docker(3)-部署wordpress实践 date: 2018-5-10 22:38:32 tags: - linux diff --git a/source/_posts/前端杂烩/CSS布局(2) - Flex.md b/source/_posts/前端杂烩/CSS布局(2) - Flex.md index 577a1af..5a6ca91 100644 --- a/source/_posts/前端杂烩/CSS布局(2) - Flex.md +++ b/source/_posts/前端杂烩/CSS布局(2) - Flex.md @@ -1,5 +1,5 @@ --- -title: CSS布局(2) - Flex +title: CSS布局(2)-Flex date: 2018-5-15 22:38:32 tags: - 前端 diff --git a/source/_posts/前端杂烩/CSS布局(3) - Flex实践.md b/source/_posts/前端杂烩/CSS布局(3) - Flex实践.md index 6c4a182..49baa79 100644 --- a/source/_posts/前端杂烩/CSS布局(3) - Flex实践.md +++ b/source/_posts/前端杂烩/CSS布局(3) - Flex实践.md @@ -1,5 +1,5 @@ --- -title: CSS布局(3) - Flex实践 +title: CSS布局(3)-Flex实践 date: 2018-5-16 22:38:32 tags: - 前端 diff --git a/source/_posts/前端杂烩/CSS布局(4) - Grid.md b/source/_posts/前端杂烩/CSS布局(4) - Grid.md index 6a66314..feb8526 100644 --- a/source/_posts/前端杂烩/CSS布局(4) - Grid.md +++ b/source/_posts/前端杂烩/CSS布局(4) - Grid.md @@ -1,5 +1,5 @@ --- -title: CSS布局(4) - grid +title: CSS布局(4)-grid date: 2018-5-17 22:38:32 tags: - 前端 diff --git a/source/_posts/前端杂烩/SASS - 初见.md b/source/_posts/前端杂烩/SASS - 初见.md index 42a90c0..054056c 100644 --- a/source/_posts/前端杂烩/SASS - 初见.md +++ b/source/_posts/前端杂烩/SASS - 初见.md @@ -1,5 +1,5 @@ --- -title: SASS - 初见 +title: SASS-初见 date: 2018-5-11 22:38:32 tags: - 前端 diff --git a/source/_posts/前端杂烩/SASS - 语法(1).md b/source/_posts/前端杂烩/SASS - 语法(1).md index d0f3e6f..dcea180 100644 --- a/source/_posts/前端杂烩/SASS - 语法(1).md +++ b/source/_posts/前端杂烩/SASS - 语法(1).md @@ -1,5 +1,5 @@ --- -title: SASS - 语法(1) +title: SASS-语法(1) date: 2018-5-12 22:38:32 tags: - 前端 diff --git a/source/_posts/前端杂烩/SASS - 语法(2).md b/source/_posts/前端杂烩/SASS - 语法(2).md index 1a1ee0b..b227d24 100644 --- a/source/_posts/前端杂烩/SASS - 语法(2).md +++ b/source/_posts/前端杂烩/SASS - 语法(2).md @@ -1,5 +1,5 @@ --- -title: SASS - 语法(2) +title: SASS-语法(2) date: 2018-5-13 22:38:32 tags: - 前端