09 2016 档案
python发邮件
摘要:# -*- coding:utf-8 -*- import smtplib,os,sys,string import mimetypes from email import Encoders from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.MIMEMultipart impo... 阅读全文
posted @ 2016-09-29 16:50 凌度 阅读(289) 评论(0) 推荐(0)
[LINUX] 查看连接数和IO负载
摘要:一、查看哪些IP连接本机 netstat -an 二、查看TCP连接数 1)统计80端口连接数netstat -nat|grep -i "80"|wc -l2)统计httpd协议连接数ps -ef|grep httpd|wc -l3)、统计已连接上的,状态为“establishednetstat - 阅读全文
posted @ 2016-09-20 11:04 凌度 阅读(9295) 评论(0) 推荐(0)
nginx 完全关闭 access_log
摘要:修改nginx.config 阅读全文
posted @ 2016-09-20 09:25 凌度 阅读(2559) 评论(0) 推荐(0)
linux查看出口IP
摘要:curl ipinfo.io 阅读全文
posted @ 2016-09-19 17:39 凌度 阅读(3253) 评论(0) 推荐(0)
hive添加分区
摘要:添加分区 alter table 表名 add partition (dt='2016-09-12'); select * from 表名 where dt = '2016-09-12' limit 10; 阅读全文
posted @ 2016-09-13 14:47 凌度 阅读(12154) 评论(0) 推荐(0)
邮件乱码
摘要:乱码邮件的头 正确的应该是这么写 阅读全文
posted @ 2016-09-01 15:14 凌度 阅读(264) 评论(0) 推荐(0)