日志分割方法: 1.logrotate 2.mv? logfile.log??? $(date -d ‘yesterday‘ +‘%Y%m%d‘)_old.log /sbin/killall? -USR1?? nginx 或 $(cat? path/nginx.pid) /sbin/killall ? -HUP?? httpd 3. cp? logf...
分类:
其他好文 时间:
2014-12-16 17:19:14
阅读次数:
152
原文: C语言编写Windows服务程序 #include #include #define SLEEP_TIME 5000 // 间隔时间
#define LOGFILE "C:\\memstatus.txt" // 信息输出文件 SERVICE_STATUS Service...
分类:
编程语言 时间:
2014-12-16 08:41:42
阅读次数:
314
ORACLE重做日志文件用于在数据库崩溃等情况下用于恢复数据,默认情况下为三个文件redo01.log/redo02.log/redo03.log,文件组循环使用,在录入与更新操作比较多的应用中,日志文件更新比较繁忙。1. 查询日志文件:SQL>select * from v$logfile;SQL...
分类:
数据库 时间:
2014-12-14 18:27:50
阅读次数:
264
/etc/yum.config介绍:[main]cachedir=/var/cache/yum#yum下载的RPM包的缓存目录keepcache=0#缓存是否保存,1保存,0不保存。debuglevel=2#调试级别(0-10),默认为2(具体调试级别的应用,我也不了解)。logfile=/var/...
分类:
其他好文 时间:
2014-12-13 16:24:40
阅读次数:
227
expdp/impdp由于源数据版本高于目标数据库版本,遭遇ORA-39001、ORA-39000,ORA-39142,解决只需要expdp导出时加上目标数据的version,具体问题及解决如下:
导入报错:
[oracle@orcle02 ~]$ impdp scott/tiger directory=expdp dumpfile=wxlun1212.dmp logfile=wxl...
分类:
其他好文 时间:
2014-12-12 15:02:02
阅读次数:
317
一.问题现象--执行日志切换时,夯住SQL> alter database add logfile group 4 ('/u01/oradata/oracle/redo04.log') size 50m;SQL> alter system switch logfile;二.分析过程1.怀疑磁盘空间满...
分类:
其他好文 时间:
2014-12-10 12:33:39
阅读次数:
322
python日志 __author__?=?‘Administrator‘
import?re
ipa?=?{}
err_nb?=?{}
IES?=?{}
IES[‘AB‘]?=?[‘MSIE‘,?‘Firefox‘,?‘Chrome‘]
Logfile?=?‘./access_log‘
f=open(Logfile,?‘r‘).readlines()
...
分类:
编程语言 时间:
2014-12-10 00:37:43
阅读次数:
227
ORACLE 第一章创建授权
通过命令查看控制文件,数据文件,日志文件:
控制文件 : Desc v$controlfile;
数据文件 :desc v$datafile;
日志文件: desc v$logfile;
1. 执行导入 .sql文件
命令语法如下:
directory_path\store_schema.sql
其中 ...
分类:
数据库 时间:
2014-12-09 21:35:07
阅读次数:
361
修改Mcollective支持syslog输出,同时将默认的utc时间修改为本地时间。moduleMCollective
moduleRPC
#Anauditpluginthatjustlogstoafile
#
#Youcanconfigurewhichfileitlogstowiththesetting
#
#plugin.rpcaudit.logfile
classLogfile<Audit
require‘pp‘
require‘syslog‘
..
分类:
其他好文 时间:
2014-12-08 19:46:36
阅读次数:
207
一、Xtrabackup备份恢复原理备份innodb表时,xtrabackup若干个线程拷贝独立表空间的.ibd文件,并不停监视此过程中redolog的变化,添加到自己的事务日志文件(xtrabackup_logfile)中。在此过程中,发生的物理写操作越多,xtrabackup_logfile越大。在拷贝完成后的第一个prepare..
分类:
数据库 时间:
2014-11-29 07:11:44
阅读次数:
250