以下内容出自:> 今天讲命令模式,这个模式从名字上看就很简单,命令嘛,老大发命令,小兵执行就是了,确实是这个意思,但是更深化了,用模式来描述真是是世界的命令情况。正在看这本书的你,我猜测分为两类:已经工作的和没有工作的,先说没有工作的,那你为啥要看这本书,为了以后工作呗,只要你参见工作,你肯定会待....
分类:
其他好文 时间:
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
1.安装sendmail和sendmail-cfdovecotyuminstallsendmail-cfsendmaildovecot-y2.配置sendmail[root@mail~]#cd/etc/mail[root@mailmail]#vimsendmail.mc修改Addr=127.0.0.0改为如下的0.0.0.0DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0,Name=MTA‘)修改LOCAL_DOMAIN(`localhost.domai..
分类:
Web程序 时间:
2014-07-17 08:55:09
阅读次数:
572
在客户端上配置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
1.BIND:Berkeley Internet Name DomainDNS:Domian Name Service 域名解析2. Http3.PAM 插入式认证模块4.SMTP/POP3/IMAP4:Mail Server5.域名www.baidu.com这是一个主机名(FQDN,Full Qu...
分类:
系统相关 时间:
2014-07-17 00:10:02
阅读次数:
351
问题:当程序正在安装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
一.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