上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 参考博客: git & github 快速入门http://www.cnblogs.com/alex3714/articles/5930846.html 1 git@github.com:liyongsan/git_class.git 2 3 We recommend every repositor 阅读全文
posted @ 2017-06-18 21:28 李永三 阅读(442) 评论(0) 推荐(0) 编辑
摘要: Day20回顾: 1. 请求生命周期 2. 中间件 md = [ "file_path.classname" ] process_request【可有可无】 process_response【必须有】 process_request process_response process_request 阅读全文
posted @ 2017-06-11 11:56 李永三 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 0.16.0版本的发布,带来了minion可以连接多Master的特性. 这种方式称为多master( multi-master )配置, 使环境中的SaltStack冗余。在这种配置下,Salt Minions将连接所有配置的Salt Master. 本文将带你了解如何建立多Master的环境. 阅读全文
posted @ 2017-06-05 11:47 李永三 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 参考链接: http://www.cnblogs.com/wupeiqi/articles/5237704.html http://www.cnblogs.com/wupeiqi/articles/5246483.html s16day19课堂笔记: 上节回顾: 1. 分页 - Django内置 - 阅读全文
posted @ 2017-06-05 10:48 李永三 阅读(196) 评论(0) 推荐(0) 编辑
摘要: linux服务器分析优化 Linux内存使用情况分析 1.linux系统使用了多少内存 在系统使用的情况下,我们可以使用free,top,vmstat,或是cat /proc/meminfo来得到系统内存的使用数据,但是显示给我们的结果也往往令我们失望:peter@newboy:~$ free to 阅读全文
posted @ 2017-06-01 18:42 李永三 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 本随笔介绍CPU负载的排查手段。 查看系统负载的工具:uptime,w,都能查看系统负载,系统平均负载是处于运行或不可打扰状态的进程的平均数, 可运行:运行态,占用CPU,或就绪态,等待CPU调度。 不可打扰:阻塞,正在等待I/O 1.使用uptime查看系统负载 这里我们关注的是最后三列,即系统1 阅读全文
posted @ 2017-05-31 10:13 李永三 阅读(4217) 评论(0) 推荐(0) 编辑
摘要: 参考课件: http://www.cnblogs.com/wupeiqi/articles/6144178.html http://www.cnblogs.com/wupeiqi/articles/5246483.html 1 s16Day18 2 3 上节回顾: 4 1. Model操作 5 - 阅读全文
posted @ 2017-05-30 13:21 李永三 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 参考博客: http://www.cnblogs.com/wupeiqi/articles/5237704.html http://www.cnblogs.com/wupeiqi/articles/5246483.html 1 s16day17 2 3 4 上节内容回顾: 5 6 路由系统: 7 1 阅读全文
posted @ 2017-05-21 18:26 李永三 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 一、数据库操作 1、创建model表 基本结构 1 from django.db import models 2 3 class userinfo(models.Model): 4 #如果没有models.AutoField,默认会创建一个id的自增列 5 name = models.CharFie 阅读全文
posted @ 2017-05-19 00:44 李永三 阅读(354) 评论(0) 推荐(0) 编辑
摘要: from app01 import modelsmodels.Book.objects.create(name="python",price=88,pub_date='2017-05014') pymysql.err.IntegrityError: (1048, "Column 'publisher 阅读全文
posted @ 2017-05-14 23:32 李永三 阅读(572) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页