2017年12月13日

【转】【mysql】many connection errors解决方法

摘要: 转自:https://jingyan.baidu.com/article/9f7e7ec087dcbe6f2815542d.html?qq-pf-to=pcqq.c2c 错误:Host is blocked because of many connection errors; unblock wit 阅读全文

posted @ 2017-12-13 15:09 月未央 阅读(2363) 评论(0) 推荐(0) 编辑

2017年11月24日

kafka

摘要: http://www.infoq.com/cn/articles/kafka-analysis-part-1 http://www.infoq.com/cn/articles/kafka-analysis-part-2 http://www.infoq.com/cn/articles/kafka-a 阅读全文

posted @ 2017-11-24 19:39 月未央 阅读(137) 评论(0) 推荐(0) 编辑

Linux查看物理CPU个数、核数、逻辑CPU个数

摘要: 查看CPU信息(型号)cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c # 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数 # 查看物理CPU个数 cat /proc/cpuinfo| grep "physical id"| sort| uniq|... 阅读全文

posted @ 2017-11-24 10:12 月未央 阅读(182) 评论(0) 推荐(0) 编辑

2017年10月2日

epoll、cpoll、xpoll

摘要: xserver:高性能网络库,很牛叉的一个server,有4中工作模式:xpoll、epoll、cpoll、apoll。 select、poll、epoll、xpoll、cpoll、apoll:IO多路复用的机制,监视多个描述符,一旦某个描述符就绪,能够通知程序进行相应的读写操作。 I/O多路复用: 阅读全文

posted @ 2017-10-02 15:32 月未央 阅读(814) 评论(0) 推荐(0) 编辑

2017年9月6日

Curl命令简介

摘要: 相关1:http://blog.csdn.net/windows_nt/article/details/9630567 相关2:http://php.net/manual/zh/function.curl-setopt.php 1、使用curl命令发送post数据: curl -d ‘{post内容 阅读全文

posted @ 2017-09-06 18:06 月未央 阅读(3580) 评论(0) 推荐(1) 编辑

ps:分钟级监控服务内存变化情况

摘要: 相关:http://www.cnblogs.com/peida/archive/2012/12/19/2824418.html monitor.sh */1 * * * * sh monitor.sh >/dev/null 2>&1 ps命令:process status的缩写。ps命令用来列出系统 阅读全文

posted @ 2017-09-06 15:35 月未央 阅读(240) 评论(0) 推荐(0) 编辑

linux系统/var/log目录下的信息详解

摘要: 原文见:http://blog.chinaunix.net/uid-26569496-id-3199434.html 磁盘报警原因有很多,当有磁盘报警时,在相应的目录下进行删除废弃文件即可,一般是log 1、df -h:查看分区使用情况 2、查看到达瓶颈的分区,并做处理。 如:df -h 发现:/v 阅读全文

posted @ 2017-09-06 11:06 月未央 阅读(730) 评论(0) 推荐(0) 编辑

2017年8月21日

pthread_create、pthread_join

摘要: 1、pthread_create:创建线程; 2、pthread_join:等待线程结束; pthead_create(a,..); pthread_join(); pthead_create(b); ... 则线程a执行完毕后,才会开始创建运行线程b; 阅读全文

posted @ 2017-08-21 19:39 月未央 阅读(611) 评论(0) 推荐(0) 编辑

2017年8月19日

【转载】nginx中gzip的各项配置以及配置参数的意思详解

摘要: 转自:http://blog.csdn.net/jessonlv/article/details/8016284 __使用范例__ : gzip on;: gzip_min_length 1000;: gzip_proxied expired no-cache no-store private au 阅读全文

posted @ 2017-08-19 17:16 月未央 阅读(409) 评论(0) 推荐(0) 编辑

linux——Nginx——反向代理服务器

摘要: nginx文档:http://nginx.org/en/docs/ http://tengine.taobao.org/book/ http://saiyaren.iteye.com/blog/1914865 1、介绍: Nginx是一个网页服务器,能够代理HTTP、HTTPS、SMTP、IMPS、 阅读全文

posted @ 2017-08-19 15:01 月未央 阅读(943) 评论(0) 推荐(0) 编辑

导航