Loading

摘要: 参考: 1. 解释为什么及何时适合用这语法:https://blog.csdn.net/AlanGuoo/article/details/78855750 2. 代码写法示例:https://blog.csdn.net/huo_1214/article/details/79242516 # _nam 阅读全文
posted @ 2020-04-14 21:22 wsongl 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 序号(后面举例用) 类型 举例 作用说明 1 前单下划线 _var ★★ 命名约定为私有属性、方法,但不会强制执行(报错),只是作为提示. 经常用于property语法中. 2 后单下划线 var_ ★ 避免与关键字冲突,又让变量名具有可读性. 举例:加入想用type = "ok" ,但type是关 阅读全文
posted @ 2020-04-14 20:47 wsongl 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1 from django.shortcuts import HttpResponse 2 from django.http import JsonResponse 3 from django.core import serializers 4 from app01.models import Pe 阅读全文
posted @ 2020-04-07 19:56 wsongl 阅读(3341) 评论(0) 推荐(0) 编辑
摘要: 官方文档:http://2.python-requests.org/zh_CN/latest/user/quickstart.html 参考:https://www.cnblogs.com/lanyinhao/p/9634742.html 阅读全文
posted @ 2020-04-07 16:21 wsongl 阅读(138) 评论(0) 推荐(0) 编辑
摘要: pyzabbix github地址: https://github.com/lukecyca/pyzabbix zabbix官方接口: https://www.zabbix.com/documentation/4.0/zh/manual/api 1 from pyzabbix import Zabb 阅读全文
posted @ 2020-04-05 23:52 wsongl 阅读(2587) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/u010076603/article/details/90296982 1. 查看cpu占用高的进程 命令:top 这里<pid>是22154 2.查看该进程下哪个线程占用cpu过高 命令:top -Hp <pid> 此处命令:top -Hp 2 阅读全文
posted @ 2020-01-14 10:23 wsongl 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: 一、docker安装 参考:https://www.cnblogs.com/wangxiayun/p/10064421.html 1、Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。 通过 uname -r  阅读全文
posted @ 2020-01-11 17:22 wsongl 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/binarylei/p/9201975.html 多用户配置:https://blog.csdn.net/lg_lin/article/details/80271184 用户目录的上层目录,拥有者一定要是root用户 创建用户groupadd < 阅读全文
posted @ 2020-01-07 16:56 wsongl 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1. 生成加密文件 2. 在nginx的域名配置文件(conf)中,添加如下内容 3.重启nginx 阅读全文
posted @ 2019-10-28 13:18 wsongl 阅读(199) 评论(0) 推荐(0) 编辑
摘要: git基础操作:http://www.admin10000.com/document/5374.html git远程操作:http://www.admin10000.com/document/4554.html # 生成密钥 ssh-keygen -t rsa –C "<userEmail>" # 阅读全文
posted @ 2019-03-01 17:18 wsongl 阅读(167) 评论(0) 推荐(0) 编辑