上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
摘要: 携程Ctrip DAL的学习 2 本人net开发菜鸟,原理请自行看github的官网源码。 我这里是简单的使用(helloworld的水平)。 代码生成器的使用 详见 [官网使用说明][1] [1]: https://github.com/ctripcorp/dal/wiki/%E4%BB%A3%E 阅读全文
posted @ 2016-12-10 14:44 过错 阅读(463) 评论(1) 推荐(0)
摘要: 携程Ctrip DAL的学习 1 本人net开发菜鸟,原理请自行看github的官网源码。 我这里是简单的使用(helloworld的水平)。 Ctrip DAL是携程框架部开发的数据库访问框架,支持代码生成和水平扩展。其由携程技术中心框架部DAL团队开发,历经3年不断打磨,并在长期的实际使用中基于 阅读全文
posted @ 2016-12-10 14:34 过错 阅读(1919) 评论(2) 推荐(0)
摘要: 安装netcore 参考 http://www.cnblogs.com/hohoa/p/5691071.html 1 在root下新建一个文件夹“dotnet”用来放SDK,然后用ftp从本机把SDK压缩包传过来,接下来要用命令解压 2 cd dotnet //进入到dotnet目录 3 tar z 阅读全文
posted @ 2016-10-28 15:48 过错 阅读(557) 评论(0) 推荐(0)
摘要: miniprofiler对方法的时间性能检测 直接上代码 结果如下 ![此处输入图片的描述][1] [1]: http://i.imgur.com/PsjLY.png 如果需要做验证,可以简单的地址判断是否本地,来决定是否启用就可以了。 module 也可以这样。 阅读全文
posted @ 2016-08-04 14:19 过错 阅读(627) 评论(0) 推荐(0)
摘要: miniprofiler的使用 miniprofiler的详细介绍请看这里http://miniprofiler.com/。(可以对数据库和页面等监控如 ado ef mvc mongodb) 本文以nancy和petapoco为示例 安装 Install Package MiniProfiler 阅读全文
posted @ 2016-08-04 10:55 过错 阅读(1177) 评论(0) 推荐(0)
摘要: 在mvc中有RenderPage 用来呈现其他视图的内容,而在nancy中没有RenderPage。怎么办呢? mvc中RenderPage的替代品,就是 Html.Partial。 使用方式 @Html.Partial("partView", this.Context.CurrentUser) , 阅读全文
posted @ 2016-06-12 22:23 过错 阅读(520) 评论(0) 推荐(0)
摘要: 在/lib/systemd/system 下创建文件jexus.service vi jexus.service 内容如下 [Unit] Description=jexus After=network.target [Service] Type=forking ExecStart=/usr/loca 阅读全文
posted @ 2016-06-07 21:12 过错 阅读(920) 评论(0) 推荐(1)
摘要: 保证模板的正常执行 使用||true $ consul template template "in.ctmpl:out.file:service nginx restart || true" 当nginx不返回0的时候,仍然返回OK exit code, consul模板仍然作为服务继续执行。 建议 阅读全文
posted @ 2016-05-25 16:20 过错 阅读(417) 评论(0) 推荐(0)
摘要: datacenters {{datacenters}} 数据中心 file {{file "/path/to/local/file"}} 读取本地文件的内容。如果不可读的话,会报错 key {{key "service/redis/maxconns@east aws"}} 读取consul的键的值。 阅读全文
posted @ 2016-05-25 15:54 过错 阅读(668) 评论(0) 推荐(0)
摘要: 参看https://github.com/hashicorp/consul template examples // This is the address of the Consul agent. By default, this is 127.0.0.1:8500, // which is th 阅读全文
posted @ 2016-05-25 15:08 过错 阅读(1066) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页