上一页 1 2 3 4 5 6 7 8 9 10 ··· 69 下一页
摘要: 开门见山写一个 package main import ( "fmt" "github.com/robfig/cron" "log" "strings" "time" ) func CronTask() { log.Println("******** ******* *******") } func 阅读全文
posted @ 2020-05-01 20:31 jihite 阅读(7275) 评论(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 阅读(1354) 评论(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 阅读(874) 评论(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) 编辑
摘要: Image2String import base64 def image_str(): with open("test.png", "rb") as imageFile: str = base64.b64encode(imageFile.read()) return str String2Image 阅读全文
posted @ 2020-04-02 10:38 jihite 阅读(1458) 评论(0) 推荐(0) 编辑
摘要: 设置gunicorn 参数--limit-request-line 8188 (默认是4094) 参考 limit_request_line --limit-request-line INT 4094 The maximum size of HTTP request line in bytes. T 阅读全文
posted @ 2020-03-29 12:04 jihite 阅读(1199) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 69 下一页