[intrinsic column flags] (基本字段类型标识)- PK:
primary key (column is part of a pk) 主键- NN: not null (column is nullable) 非空-
UQ: unique (column is part of ...
分类:
数据库 时间:
2014-05-15 14:27:20
阅读次数:
301
经过几天的学习,pexpect模块对于linux下运维脚本编写属实有用,下面写个脚本检验下学习效果。#!/usr/bin/envpython
#coding=utf-8
#远程执行服务器上的脚本
importsys,time,os,multiprocessing
try:
importpexpect
exceptImportError:
print"""
Youmustinstallpexpectmodule
"..
分类:
其他好文 时间:
2014-05-15 12:55:28
阅读次数:
260
(1)cd
/usr/local/php-5.2.17/ext/mysqli(2)输入/usr/local/php/bin/phpize 回车(3)./configure
--prefix=/usr/local/mysqli --with-php-config=/usr/local/php/bin....
分类:
其他好文 时间:
2014-05-15 09:34:06
阅读次数:
292
初学者一枚,代码都是模仿网上的。亲测可用~运行脚本的前提是本机安装了httplib2模块#!/usr/bin/python
importos
importre
importstring
importurllib
#author:reed
#date:2014-05-14
defGetWebPictures():
url=raw_input(‘pleaseinputthewebsiteyouwanttodownload:‘)
imgconte..
分类:
编程语言 时间:
2014-05-15 09:03:42
阅读次数:
385
由于现网有时候要测试很多端口的连通性,所以就写了个小脚本,实现批量测试将telnet成功的写入到telnet_alive.txt中,失败则写入telnet_die.txt中#!/bin/bash#thisscripttestUPtootherhost.#Iplist=/opt/script_test/iplist.dataPortnumber=7001foripin$(catiplist.data)do(slee..
分类:
Web程序 时间:
2014-05-15 08:46:11
阅读次数:
385
用一个shell脚本添加一个IP的mysql3306端口到防火墙白名单#!/bin/bashchkconfig--level235iptablesoniptables-Fiptables-AINPUT-s127.0.0.1-ptcp--dport3306-jACCEPTiptables-AINPUT-s192.168.0.11-ptcp--dport3306-jACCEPT
分类:
数据库 时间:
2014-05-15 00:45:29
阅读次数:
299
vShell的作用——命令解释器,“翻译官”§介于系统内核与用户之间,负责解释命令行v用户的登录Shell§登录后默认使用的Shell程序,一般为/bin/bash§不同Shell的内部指令、运行环境等会有所区别v执行脚本文件§方法一:脚本文件路径§方法二:sh脚本文件路径§方法三:source..
分类:
其他好文 时间:
2014-05-15 00:32:51
阅读次数:
393
1、ObjectorReplicator的启动
首先运行启动脚本
swift-init object-replicator start此运行脚本的运行过程和ring运行脚本运行过程差不多,找到swift 源码bin下的swift-object-replicator其代码如下所示
if __name__ == '__main__':
parser = OptionParser("%pr...
分类:
其他好文 时间:
2014-05-15 00:08:27
阅读次数:
332
php5.4.3如何连接sqlServer 2008 r21、下载
ntwdblib.dll,(http://yunpan.cn/QiRkGyLH2YYJy (提取码:edfc)),拷贝到 php安装路径的根目录下 和
Apache服务器安装路径的bin文件夹下;2、下载sqlsrv相关文件,(ht...
分类:
数据库 时间:
2014-05-14 23:31:49
阅读次数:
530
第三道树的题目,我还是不会,我擦,怎么递归算法还是不能很好理解。看来还得好好研究下递归算法。题目:求一棵树的最大深度。思路:递归地求取左子树最大深度
和 右子树最大深度,返回较大值即为 整棵树的 最大深度。代码:public int maxDepth(TreeNode root) { ...
分类:
其他好文 时间:
2014-05-14 23:07:14
阅读次数:
373