1.mongodb 数据导出: connection options: /h, /host:<hostname> mongodb host to connect to (setname/host1,host2 for replica sets) /port:<port> server port (c ...
分类:
其他好文 时间:
2019-12-10 15:13:27
阅读次数:
108
```python # -*- coding: utf-8 -*- #!/usr/bin/env python3 """Simple HTTP Server With Upload. This module builds on BaseHTTPServer by implementing the s... ...
分类:
其他好文 时间:
2019-12-10 14:47:38
阅读次数:
88
#!/bin/bash base_dir=/opt war_processor="tomcat" jar_processor="manager-server.jar platform-server.jar platform-item.jar platform-shop.jar platform-ta... ...
分类:
编程语言 时间:
2019-12-10 13:30:17
阅读次数:
132
1、查看文件内容 vi file.txt 查看文件内容 ctrl+d:向文件尾翻半屏 ctrl+u:向文件首翻半屏 ctrl+f:向文件尾翻一屏 ctrl+b:向文件首翻一屏 /xxxx:向下查找,输入/xxxx,回车,查找 ?xxxx:向上查找 n:向下查找包含关键字的记录,滚动查找,找到则光标定 ...
分类:
系统相关 时间:
2019-12-10 00:34:03
阅读次数:
87
[toc] 异常模块 为什么要自定义异常模块 1. 所有 经过 drf APIView 视图类产生的异常 ,都可以提供异常处理方案(没有继承 APIVIew 的视图函数不会触发) 2. drf 默认提供了异常处理方案( ),但是处理范围有限 3. drf 提供的处理方案有两种 有对应处理,处理了返回 ...
分类:
其他好文 时间:
2019-12-09 21:33:17
阅读次数:
140
sed -n '/<N/p' CM-ENB-SRVIDENTIFYBASEBSRTDD-2C-ALLV2.9.0-20191209020003.xml.gz.xml|awk -F">" '{ print $2 }'|awk -F"<" '{ print $1 }'|sed 's/^/SRVIDENT ...
分类:
其他好文 时间:
2019-12-09 19:59:11
阅读次数:
126
SELECTF.TABLESPACE_NAME,(T.TOTAL_SPACE-F.FREE_SPACE)"USED(MB)",F.FREE_SPACE"FREE(MB)",T.TOTAL_SPACE"TOTAL(MB)",(ROUND((F.FREE_SPACE/T.TOTAL_SPACE)100))||‘%‘PER_FR
分类:
数据库 时间:
2019-12-09 19:15:12
阅读次数:
187
MYSQL报错:#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't sup ...
分类:
数据库 时间:
2019-12-09 13:32:51
阅读次数:
335
可兼容移动端视图 效果图如下:太极图是可以旋转的 具体实现如下: <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, ini ...
分类:
Web程序 时间:
2019-12-09 12:00:41
阅读次数:
228
Linux命令行操作json神器jq https://www.cnblogs.com/chenqionghe/p/11736942.html jq类似一个awk或grep一样的神器,可以方便地在命令行操作json 这里我使用海南万宁的天气接口做演示,地址:http://t.weather.sojso ...
分类:
Web程序 时间:
2019-12-09 01:11:17
阅读次数:
205