摘要:
select * from (select city,usage_percent from cdn_usage_city_5min where time='{getTime()}' and city not like '%未知%' ) as a LEFT JOIN (select city,cart
阅读全文
posted @ 2020-04-14 13:53
谢Rain
阅读(145)
推荐(0)
摘要:
聚合 Concat from django.db.models import Aggregate, CharField class Concat(Aggregate): """ORM用来分组显示其他字段 相当于group_concat""" function = 'GROUP_CONCAT' tem
阅读全文
posted @ 2020-04-14 13:47
谢Rain
阅读(138)
推荐(0)
摘要:
优化 host_key_checking = False #关闭StrictHostKeyChecking检查 pipelining = True ssh_args = -C -o ControlMaster=auto -o ControlPersist=7d forks = 600 Control
阅读全文
posted @ 2020-04-10 15:02
谢Rain
阅读(152)
推荐(0)
摘要:
永久修改主机名 hostnamectl set-hostname NEW_NAME 2.Linux查看版本当前操作系统内核信息 uname -a 3.修改本地DNS https://www.cnblogs.com/zjhblogs/p/5938739.html
阅读全文
posted @ 2020-04-07 12:40
谢Rain
阅读(115)
推荐(0)
摘要:
1.删除所有的app下 migations 文件 但是保留__init__.py rm -rf {api,backend}/migrations/* touch {api,backend}/migrations/__init__.py 2.删除数据库里 的所有django_migrations表的记
阅读全文
posted @ 2020-03-27 16:16
谢Rain
阅读(773)
推荐(0)
摘要:
/etc/yum.repos.d/nginx.repo/ #添加yum 仓库 yum repolist 编译安装 repl 的配置 conf.d 下直接 写 *.conf 即可 提供配置
阅读全文
posted @ 2020-03-03 18:06
谢Rain
阅读(102)
推荐(0)
摘要:
#这篇记录的都是linux的n内容 欢迎只点意见 目录如下:... 定时任务 https://www.jianshu.com/p/aa2486f519fd frp 搭建 https://www.cnblogs.com/yanjieli/p/10697671.html Linux基础 一 1. 显示命
阅读全文
posted @ 2020-03-03 15:15
谢Rain
阅读(147)
推荐(0)
摘要:
ngnix 安装:https://www.cnblogs.com/boonya/p/7907999.html 虚拟环境 :https://baijiahao.baidu.com/s?id=1649736303583084106&wfr=spider&for=pc python install :ht
阅读全文
posted @ 2020-03-02 14:00
谢Rain
阅读(119)
推荐(0)
摘要:
递归 递归需要满足的三个条件 1.一个问题的解可以分解为几个子问题的解 2. 这个问题与分解之后的子问题,除了数据规模不同,求解思路完全一样 3. 存在递归终止条件 假如这里有 n 个台阶,每次你可以跨 1 个台阶或者 2 个台阶,请问走这 n 个台阶有多少种 走法?如果有 7 个台阶,你可以 2,
阅读全文
posted @ 2020-01-31 12:52
谢Rain
阅读(159)
推荐(0)
摘要:
观点1 我们无法孤立数据结构来讲算法,也无法孤立算法来讲数据结构。 比如,因为数组具有随机访问的特点,常用的二分查找算法需要用数组来存储数据。但如果 我们选择链表这种数据结构,二分查找算法就无法工作了,因为链表并不支持随机访问。 这里面有 10 个数据结构:数组、链表、栈、队列、散列表、二叉树、堆、
阅读全文
posted @ 2020-01-24 20:02
谢Rain
阅读(342)
推荐(0)