- 博客(13)
- 收藏
- 关注
原创 Nginx - access log
log_format main '$remote_addr|$upstream_addr|$connection|$upstream_status|$time_local|$request|' '$status|$body_bytes_sent|$bytes_sent|$http_referer|' '$http_user_agent|$upstream_res
2014-04-23 17:25:50 456
原创 get_client_ip
/** * @author chenliujin * @since 2014-04-17 */ function get_client_ip() { $checks = array( 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_FORWARDED_FOR', 'H
2014-04-17 14:21:48 981
原创 isRobot
function isRobot($agent) { $robots = array( "bot", "abcdatos", "acme", "ahoy", "alkaline", "almaden", "amfibibot", "ananzi", "answerbus", "anthill", "appie", "appie1.1", "ar
2014-04-17 11:16:19 1054
转载 check_hadoop_tasktracker.py
''' Created on 2011-11-25 @author: yue.zhang ''' #!/usr/bin/env python import commands import sys from optparse import OptionParser import urllib import re def get_value(): urlItem = urllib.url
2014-04-16 11:13:48 392
转载 check_hadoop_dfs.py
''' Created on 2011-11-25 @author: yue.zhang ''' #!/usr/bin/env python import commands import sys from optparse import OptionParser import urllib import re def get_dfs_free_percent(): urlItem =
2014-04-16 11:11:48 445
转载 check_hadoop_datanode.py
''' Created on 2011-11-25 @author: yue.zhang ''' #!/usr/bin/env python import commands import sys from optparse import OptionParser import urllib import re def get_value(): urlItem = urllib.url
2014-04-16 11:04:53 434
原创 Hadoop问题
网络拓扑图 a.服务器配置 b.拓扑图 * 节点管理 a.增加datanode b.删除datanode c.namenode恢复 * 如何优化? a.Hive * 监控 a.节点故障 b.job数 Nagios
2014-04-15 18:30:37 410
原创 配置https
安装 openssl $ yum install openssl 创建证书 $ cd /etc/pki/CA $ /etc/pki/tls/misc/CA -newca Enter PEM pass phrase: 123456 Verifying - Enter PEM pass phrase: 123456 Country Name (2 letter code) [XX]:cnStat
2014-04-10 12:15:06 1166
原创 其它编码的字符转utf8编码
if (function_exists('mb_detect_encoding') && function_exists('mb_convert_encoding')) { // mb_detect_encoding isn't very reliable, to say the least // detection should still work with a suffi
2014-04-09 18:33:47 508
转载 sys_getloadavg
http://www.php.net/manual/zh/function.sys-getloadavg.php<?php $load = sys_getloadavg(); if ($load[0] > 80) { header('HTTP/1.1 503 Too busy, try again later'); die('Server too busy. Please try
2014-04-04 16:53:56 810
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人