3种测试命令: test EXPRESSION [ EXPRESSION ] [[ EXPRESSION ]] 注意:EXPRESSION前后必须有空白字符 bash的测试类型 数值测试: -eq:是否相等 -ne:是否不等 -ge:是否大于等于 -le:是否小于等于 -gt:是否大于 -lt:是否 ...
分类:
系统相关 时间:
2017-04-16 23:50:37
阅读次数:
202
1.什么是Shell脚本 Shell脚本是利用 shell 的功能所写的一个程序 program,这个程序是使用纯文本文件,将一些 shell 的语法与指令(含外部指令)写在里面, 搭配正则表达式、管线命令与数据流重导向等功能,以达到我们所想要的处理目的。 Shell 脚本可以简单的被看成是批处理文 ...
分类:
系统相关 时间:
2017-04-16 20:35:02
阅读次数:
373
Flask是一个使用 Python 编写的轻量级 Web 应用框架。其 WSGI 工具箱采用 Werkzeug ,模板引擎则使用 Jinja2 ,使用 BSD 授权。Flask也被称为 “microf...
分类:
编程语言 时间:
2017-04-09 22:12:58
阅读次数:
279
In any distributed application, it is common to have a driver program that controls theexecution and there will be one or more worker nodes. The drive ...
分类:
其他好文 时间:
2017-04-09 11:40:08
阅读次数:
319
前言: 无论什么编程语言都离不开条件判断。SHELL也不例外。 复制代码代码如下: if list then do something here elif list then do another thing here else do something else here fi EX1: 复制代码 ...
分类:
系统相关 时间:
2017-04-09 11:38:59
阅读次数:
280
附件完整版下载地址: http://down.51cto.com/data/431561 附件部分预览~ java中国移动收费系统【源代码】 http://down.51cto.com/data/70784 java开发必备的日志文件开发包【工具】 http://down.51cto.com/dat ...
分类:
编程语言 时间:
2017-04-05 20:34:05
阅读次数:
230
{ # Django api use uwsgi location /api/ { # /api/hello ==> /hello rewrite ^/api/(.*) /$1 break; #关键是这行做替换 留意最后面是 break; include uwsgi_params; uwsgi_pa... ...
分类:
其他好文 时间:
2017-03-30 00:38:39
阅读次数:
277
[root@localhost ~]# tree /usr/local/nginx/ /usr/local/nginx/ ├── conf │ ├── fastcgi.conf │ ├── fastcgi.conf.default │ ├── fastcgi_params │ ├── fastcgi... ...
分类:
其他好文 时间:
2017-03-29 22:06:05
阅读次数:
148
所有 Flask 程序都必须创建一个程序实例。Web 服务器使用一种名为 Web 服务器网关接口(Web Server Gateway Interface,WSGI)的协议,把接收自客户端的所有请求都转交给这 个对象处理。程序实例是 Flask 类的对象,经常使用下述代码创建: from flask ...
分类:
其他好文 时间:
2017-03-29 12:41:23
阅读次数:
155
import cn.jpush.api.JPushClient; import cn.jpush.api.common.resp.APIConnectionException; import cn.jpush.api.common.resp.APIRequestException; import c ...
分类:
编程语言 时间:
2017-03-21 15:33:36
阅读次数:
871