上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: 服务器TIME_WAIT和CLOSE_WAIT详解和解决办法 来自:http://blog.csdn.net/shootyou/article/details/6622226 昨天解决了一个HttpClient调用错误导致的服务器异常,具体过程如下: http://blog.csdn.net/sho 阅读全文
posted @ 2016-04-04 12:00 wywdahai 阅读(220) 评论(0) 推荐(0) 编辑
摘要: #netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}’ LAST_ACK 14SYN_RECV 348ESTABLISHED 70FIN_WAIT1 229FIN_WAIT2 30CLOSING 33TIME_WAI 阅读全文
posted @ 2016-04-04 11:48 wywdahai 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Gdb调试多进程程序 程序经常使用fork/exec创建多进程程序。多进程程序有自己独立的地址空间,这是多进程调试首要注意的地方。Gdb功能强大,对调试多线程提供很多支持。 方法1:调试多进程最土的办法:attach pid Attach是调试进程的常用办法,只要有可执行程序以及相应PID,即可工作 阅读全文
posted @ 2016-04-02 11:33 wywdahai 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.chinaunix.net/uid-20321537-id-3494700.html # uname -a # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue # 查看操作系统版本 # cat /proc/cpuinfo # 查看CPU信息 阅读全文
posted @ 2016-04-02 11:01 wywdahai 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.blogjava.net/fhtdy2004/archive/2009/05/30/278971.html 很多情况下要求当前的程序中只有一个object。例如一个程序只有一个和数据库的连接,只有一个鼠标的object。通常我们都将构造函数的声明置于public区段,假如 阅读全文
posted @ 2016-04-02 10:58 wywdahai 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 使用cron服务,用 service crond status 查看 cron服务状态,如果没有启动则 service crond start启动它, cron服务是一个定时执行的服务,可以通过crontab 命令添加或者编辑需要定时执行的任务: crontab -u //设定某个用户的cron服务 阅读全文
posted @ 2016-03-04 12:59 wywdahai 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.163.com/bull_linux/blog/static/2138811422013101334544349/ 使用: logrotate CONF_FILE+描述: 可自动轮转,压缩,删除,邮寄日志文件。可每天,每周,每月或日志文件达到一定大小时进行操作。 通常l 阅读全文
posted @ 2016-03-04 11:26 wywdahai 阅读(1867) 评论(0) 推荐(0) 编辑
摘要: 怎样正确设置remote_addr和x_forwarded_for 2013-04-20 做网站时经常会用到remote_addr和x_forwarded_for这两个头信息来获取客户端的IP,然而当有反向代理或者CDN的情况下,这两个值就不够准确了,需要调整一些配置。 什么是remote_addr 阅读全文
posted @ 2016-02-18 15:29 wywdahai 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.myexception.cn/program/1569725.html Erlang OTP gen_event (0) 原英文文档:http://www.erlang.org/erldoc?q=&x=0&y=0Tips:看到网页右边的搜索功能了么,保存这个实用网页吧。 阅读全文
posted @ 2016-02-18 15:24 wywdahai 阅读(351) 评论(0) 推荐(1) 编辑
摘要: 1、httpc支持stream下载文件 参见erlang官方文档: Streams the body of a 200 or 206 response to the calling process or to a file. When streaming to the calling process 阅读全文
posted @ 2016-01-20 11:39 wywdahai 阅读(1124) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页