全部博文(108)
发布时间:2014-04-24 17:44:09
在awstats检查日志的时候特别注意格式。。如下是nginx的:log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' .........【阅读全文】
发布时间:2014-04-23 17:57:11
1. apt-get install -y puppet puppetmaster facter2.......【阅读全文】
发布时间:2014-04-22 17:10:31
1.切换到hadoop用户执行启动脚本:/usr/bin/sudo -u hadoop -i hadoop-daemon.sh stop namenode2./etc/monitrc里追加check process hadoop with pidfile "/usr/local/hadoop/pids/hadoop-hadoop-namenode.pid" ##注意红色字 start program = "/usr/bin/sudo -u hadoop .........【阅读全文】
发布时间:2014-04-22 15:27:36
at /proc/meminfo 读出的内核信息进行解释,下篇文章会简单对读出该信息的代码进行简单的分析。# cat /proc/meminfoMemTotal: 16438852 kBMemFree: 10980184 kBBuffers: 95884 kBCache.........【阅读全文】
发布时间:2014-04-10 12:49:22
最近忙的很,暂时找点东西看下。不想干活。search(string[, pos[, endpos]])Scan through string looking for a location where this regular expression produces a match, and return a corresponding MatchObject instance. Return None if no position in the strin.........【阅读全文】