Linux虚拟机安装完centos后环境配置

摘要: linux下面安装软件 yum install rpm -ivh 编译安装 三部曲:./configure make make install 卸载 rpm -e 通过ping 命令测试是否联网 #https://opsx.alibaba.com/mirror 来源 mv /etc/yum.repo 阅读全文
posted @ 2018-04-26 21:10 心如沚水 阅读(256) 评论(0) 推荐(0)

linux命令小结

摘要: 查看IP ip a 测试ip ping 10.0.0.128 测试端口 telnet 10.0.0.128 22 # telnet + ip + 端口 Linux - CentOS 7.4 基础命令 系统优化+定时任务nginxnginx+py搭建网站 Linux vmware fusion(mac 阅读全文
posted @ 2018-04-26 19:57 心如沚水 阅读(284) 评论(0) 推荐(0)

xshell

摘要: 阅读全文
posted @ 2018-04-25 12:20 心如沚水 阅读(199) 评论(0) 推荐(0)

vmware 安装配置 ,记住这一次不要再问我了。ok?

摘要: Linux 安装配置 ,记住这一次不要再问我了。ok? 第一步 选择版本 如果遇到问题无法自动获取的 老男孩教育-李泳谊<youjiu_linux@qq.com> 17:51:43明天开始讲解运维课程各位小伙伴们准备好环境1.安装xshell(苹果用户使用 iterm2 或命令行 )2.安装好vmw 阅读全文
posted @ 2018-04-25 10:46 心如沚水 阅读(208) 评论(0) 推荐(0)

csrf

摘要: 8. csrf class Cors(MiddlewareMixin): def process_response(self, request, response): response['Access-Cont... 阅读全文
posted @ 2018-04-21 22:20 心如沚水 阅读(217) 评论(0) 推荐(0)

django使用redis做缓存

摘要: Django 使用 Redis 做缓存 session 用 redis存储开启方式 阅读全文
posted @ 2018-04-21 20:19 心如沚水 阅读(4220) 评论(0) 推荐(0)

微信消息推送

摘要: 微信消息推送 接口测试入口https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index 第一步 用户关注公众号,一个二维码 第二步 用户授权,主动访问一个url ,可以做成二维码 这一步是用户授权 阅读全文
posted @ 2018-04-21 19:39 心如沚水 阅读(250) 评论(0) 推荐(0)

自定制serilazry字段

摘要: 在获取序列化返回值时候想要有时候我们需要生成我们需要的关联字段 阅读全文
posted @ 2018-04-20 11:17 心如沚水 阅读(152) 评论(0) 推荐(0)

小知识,大智慧(restframework 拾忆)

摘要: 一、直接对query_set序列化,在页面展示的效果是Unicode 编码格式 ,可在json 序列化时候加入一个参数 course_query = DegreeCourse.objects.all().values('pk','name') course_list = list(course_qu 阅读全文
posted @ 2018-04-16 17:38 心如沚水 阅读(153) 评论(0) 推荐(0)

总结

摘要: resful 开发规范(10) 参考资料: RESTful API 设计指南--阮一峰:http://www.ruanyifeng.com/blog/2014/05/restful_api.html 1.协议 https http .2.域名 api. 3.动作 get put post delet 阅读全文
posted @ 2018-04-12 13:40 心如沚水 阅读(150) 评论(0) 推荐(0)