上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 234 下一页

2020年5月28日

supervisord + docker run = web页面管理运行的docker

摘要: 周末了,整理下自己的测试系统,里面的东西还真不少,soft站点,ims(django开发的),registry,owncloud等等。想着,是不是可以都放到supervisord上面,这个机器里面运行了多少软件,一目了然,重启也方便,所以今天重点想着把docker运行的owncloud、regist 阅读全文

posted @ 2020-05-28 18:16 ExplorerMan 阅读(282) 评论(0) 推荐(0)

docker之Dockerfile实践用dockerfile构建nginx环境

摘要: docker之Dockerfile实践 上一篇介绍了Dockerfile中使用的指令,现在开始进行指令实践 先查看下本地的镜像,选一个作为base image: [root@docker ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE w 阅读全文

posted @ 2020-05-28 18:11 ExplorerMan 阅读(2197) 评论(0) 推荐(0)

Dockerfile文件详解

摘要: 什么是dockerfile? Dockerfile是一个包含用于组合映像的命令的文本文档。可以使用在命令行中调用任何命令。 Docker通过读取Dockerfile中的指令自动生成映像。 docker build命令用于从Dockerfile构建映像。可以在docker build命令中使用-f标志 阅读全文

posted @ 2020-05-28 18:00 ExplorerMan 阅读(338) 评论(0) 推荐(0)

【docker】CMD ENTRYPOINT 区别 终极解读!

摘要: 昨天用Dockerfile来启动mongodb的集群,启动参数--replSet死活没执行,最后就决定研究一哈cmd和entrypoint。但是上网看了一些资料个人觉得讲的不好,还是没有说出根本的东西,决定自己研究并且整理一哈。 首先上docker官网:https://docs.docker.com 阅读全文

posted @ 2020-05-28 17:52 ExplorerMan 阅读(413) 评论(0) 推荐(0)

2020年5月27日

golang html/template

摘要: template包(html/template)实现了数据驱动的模板,用于生成可对抗代码注入的安全HTML输出。本包提供了和text/template包相同的接口,无论何时当输出是HTML的时候都应使用本包。 main.go package main import ( "html/template" 阅读全文

posted @ 2020-05-27 11:55 ExplorerMan 阅读(792) 评论(0) 推荐(0)

2020年5月25日

golangWeb框架---github.com/gin-gonic/gin学习八(监听多端口、多类型的struct模型绑定)

摘要: 文章目录监听多端口自定义的struct绑定form-data监听多端口如何利用gin实现监听多端口 package main import ( "log" "net/http" "time" "github.com/gin-gonic/gin" "golang.org/x/sync/errgroup 阅读全文

posted @ 2020-05-25 21:20 ExplorerMan 阅读(450) 评论(0) 推荐(0)

golangWeb框架---github.com/gin-gonic/gin学习七(重定向、中间件Goroutines、http自定义配置)

摘要: 文章目录重定向服务器内部重定向中间件中间件内部的GoroutinesHTTP自定义配置重定向package main import ( "github.com/gin-gonic/gin" "net/http") func main() { router := gin.Default() route 阅读全文

posted @ 2020-05-25 21:15 ExplorerMan 阅读(441) 评论(0) 推荐(0)

golangWeb框架---github.com/gin-gonic/gin学习五(模版渲染、返回数据的格式)

摘要: 文章目录Bind HTML checkboxesMultipart/Urlencoded 绑定XML, JSON, YAML and ProtoBuf renderingjsonxmlyamlProtoBufJSONPAsciiJSONPureJSONBind HTML checkboxes学web 阅读全文

posted @ 2020-05-25 21:09 ExplorerMan 阅读(537) 评论(0) 推荐(0)

golangWeb框架---github.com/gin-gonic/gin学习四(模型绑定、自定义校验、ShouldBindXXX、BindXXX)

摘要: 文章目录模型绑定、校验绑定json(ShouldBindJSON)绑定xml(ShouldBindXML)、form(ShouldBind)自定义校验器(demo有问题)BindQuery\ShouldBindQuery(只限查询参数)BindJson(json)、Bind(查询参数、formdat 阅读全文

posted @ 2020-05-25 21:04 ExplorerMan 阅读(1241) 评论(0) 推荐(0)

golangWeb框架---github.com/gin-gonic/gin学习三(路由多视图函数、中间件、log日志)

摘要: 文章目录gin.New路由包含多个HandlerFunc函数使用中间件如何写log日志gin.New我们之前的例子都是利用了gin.Default(),那么gin.New()跟它有什么区别?来简单看下源码gin.Default()源码如下 func Default() *Engine { debug 阅读全文

posted @ 2020-05-25 21:01 ExplorerMan 阅读(305) 评论(0) 推荐(0)

上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 234 下一页

导航