以下内容出自:> 今天讲命令模式,这个模式从名字上看就很简单,命令嘛,老大发命令,小兵执行就是了,确实是这个意思,但是更深化了,用模式来描述真是是世界的命令情况。正在看这本书的你,我猜测分为两类:已经工作的和没有工作的,先说没有工作的,那你为啥要看这本书,为了以后工作呗,只要你参见工作,你肯定会待....
分类:
其他好文 时间:
2014-07-19 22:04:52
阅读次数:
344
How to Housekeep logs without restarting process1) Go to the log folder2) run the command:mv access_log access_log.oldkill -1 `cat httpd.pid`
分类:
其他好文 时间:
2014-07-19 20:10:20
阅读次数:
244
做为系统工程师来说,经常会用到python脚本去调用一下系统命令,现把经常使用的集中调用方法总结如下:一,os.system(command)在一个子shell中运行command命令,并返回command命令执行完毕后的退出状态。这个函数执行命令的结果无法保存,只能显示在标准输出。但是,命令执行是..
分类:
编程语言 时间:
2014-07-17 09:02:24
阅读次数:
228
在客户端上配置nrpe监控keepalived进程[root@localhost~]#vim/usr/local/nagios/etc/nrpe.cfgcommand[check_keepalived]=/usr/local/nagios/libexec/check_procs-w2:-c:4-Ckeepalived#command[check_keepalived]=/usr/local/nagios/libexec/check_procs-c3:3-Ckeepalived注释:..
分类:
移动开发 时间:
2014-07-17 08:07:52
阅读次数:
274
问题:当程序正在安装ms数据访问组件时,弹出错误提示框:command line option syntax error,type command/? for help,点击确定继续;到了程序正在安装HTML帮助时,弹出标题为html help 1.32 update错误提示框:command li...
分类:
数据库 时间:
2014-07-17 00:09:02
阅读次数:
354
1.定义(http://en.wikipedia.org/wiki/Command_pattern#Java)Inobject-oriented programming, thecommand patternis abehavioraldesign patternin which an object...
分类:
其他好文 时间:
2014-07-16 17:06:41
阅读次数:
297
一.Struts2用的版本是struts2.3.1.1一个简单的Struts项目所需的jar包有如下8个1. struts2-core-2.3.1.1.jar: Struts2的核心类库。2. xwork-core-2.3.1.1.jar: XWork核心类,XWork是一个标准的command模式...
分类:
编程语言 时间:
2014-07-16 16:51:38
阅读次数:
293
[root@vmoffice-7MySQL-python-1.2.3]#pythonsetup.pyinstallfunction)...._mysql.c:133:error:‘ER_SYNTAX_ERROR’undeclared(firstuseinthisfunction)_mysql.c:380:error:‘_mysql_ConnectionObject’hasnomembernamed‘connection’_mysql.c:382:warning:implicitdeclaratio..
分类:
数据库 时间:
2014-07-16 16:40:35
阅读次数:
377
在分析安卓源码过程中看到几处使用变长结构体的例子,比如下面的结构体:
struct command
{
/* list of commands in an action */
struct listnode clist;
int (*func)(int nargs, char **args);
int nargs;
char *args[1];
...
分类:
其他好文 时间:
2014-07-16 16:16:29
阅读次数:
381
公司数据库随着时间的增长,数据越来越多,查询速度也越来越慢。进数据库看了一下,几十万调的数据,查询起来确实很费时间。 要提升SQL的查询效能,一般来说大家会以建立索引(index)为第一考虑。其实除了index的建立之外,当我们在下SQL Command时,在语法中加一段WITH (NOLOC...
分类:
数据库 时间:
2014-07-16 16:01:32
阅读次数:
292