上一页 1 2 3 4 5 6 7 8 9 10 ··· 69 下一页
摘要: ☆日期函数 日期符号对应关系 年 月 日 时 分 秒 Y m d H i s 获取当前日期 now() > select now(); + + | now() | + + | 2020-06-02 22:21:20 | + + 1 row in set (0.03 sec) 昨天 DATE_FORM 阅读全文
posted @ 2020-06-06 13:00 jihite 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 昨天 市面上有这么多语言为啥还需要开发Go这么个语言? 07年的一天,几位谷歌的大牛在讨论用C++开发一些有关庞大的分布式集群的工作,非常繁琐但很核心,很是闹心,后来听说C++又要添加35项新特性。大牛听了很是不爽啊,于是讨论能否可开发一款新的语言,运行快、编译快、开发还快。于是几位列举了新语言的主 阅读全文
posted @ 2020-05-23 18:49 jihite 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: 开门见山写一个 package main import ( "fmt" "github.com/robfig/cron" "log" "strings" "time" ) func CronTask() { log.Println("******** ******* *******") } func 阅读全文
posted @ 2020-05-01 20:31 jihite 阅读(7286) 评论(0) 推荐(0) 编辑
摘要: Go语言圣经(中文版) 阅读全文
posted @ 2020-04-13 23:00 jihite 阅读(416) 评论(0) 推荐(0) 编辑
摘要: for range 遍历规律 字符串、数组、切片,返回下标、值 map返回key、val channel只返回通道内的值 举例 func ForArrayTest() { fmt.Println("for range: str") str := "hello" for key, val := ran 阅读全文
posted @ 2020-04-11 18:57 jihite 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: 登录 docker login 下载 docker pull ubuntu 推送 docker push jihite/centos:6.7 显示推送成功,但没搜到,mark 搜索 docker search jihite/centos 退出 docker logout 阅读全文
posted @ 2020-04-04 14:49 jihite 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 列举 列出本地主机上的镜像 [running]jihite@:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE test/ubuntu v1 80e674d9a004 18 minutes ago 64.2MB 参数: repository: 阅读全文
posted @ 2020-04-04 14:20 jihite 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 获取镜像 docker pull ubuntu 评:如不下载,在启动镜像时如果发现本地没有,会自动下载 启动容器 [running]jihite@:~$ docker run -it ubuntu /bin/bash root@46db001d96f5:/# echo "hello" hello 后 阅读全文
posted @ 2020-04-04 10:56 jihite 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 概念 镜像(Image):一个root文件系统 容器(Container):是镜像运行的一个实体 仓库(Repository):代码控制中心,保存镜像 和面向对象编程对比 Docker 面向对象 镜像 类 容器 对象 对象通过类来创建,容器通过镜像来创建 阅读全文
posted @ 2020-04-04 10:11 jihite 阅读(886) 评论(0) 推荐(0) 编辑
摘要: docker run 运行一个应用程序 docker run ubuntu:15.10 /bin/echo "Hello world" 镜像ubuntu,版本15.10,Docker 首先从本地主机上查找镜像是否存在,如果不存在,Docker 就会从镜像仓库 Docker Hub 下载公共镜像。 问 阅读全文
posted @ 2020-04-04 09:56 jihite 阅读(385) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 69 下一页