码迷,mamicode.com
首页 >  
搜索关键字:uniq    ( 1870个结果
linux文件相关的命令
ls nl cat less more head tail tac od touch wc du uniq
分类:系统相关   时间:2015-02-13 16:17:22    阅读次数:180
linux中socket的并发
修改参数对应的句柄数 lsof | wc -l /usr/sbin/lsof -n|awk '{print $2}'|sort|uniq -c |sort -nr|grep 4935  最大句柄数 ulimit ulimit -n 查看最大句柄数 ulimit -n 5000 设置最大句柄数为5000 查找端口连接数 netstat -nat|grep -i "22223"|wc -l...
分类:系统相关   时间:2015-02-10 21:45:55    阅读次数:243
netstat 命令详解
netstat-n|awk‘/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}‘http://blog.sina.com.cn/s/blog_623630d50101r93l.html查看连接某服务端口最多的的IP地址netstat-nat|grep"192.168.1.15:22"|awk‘{print$5}‘|awk-F:‘{print$1}‘|sort|uniq-c|sort-nr|head-20
分类:Web程序   时间:2015-02-05 11:34:01    阅读次数:230
[LeetCode] Clone Graph 无向图的复制
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:其他好文   时间:2015-02-02 15:25:58    阅读次数:193
查看服务器IP连接数之主要命令(在服务器受攻击时用)
查看TCP几种状态的总数netstat -n | awk '/^tcp/ {++S[$NF]} END {fo (a in S). print a, S[a]}'按IP查看连接数排序netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq...
分类:其他好文   时间:2015-01-30 15:00:16    阅读次数:184
Linux sort uniq awk head 完成访问日志统计排序功能
我们开发时候经常会遇到统计一些访问日志,访问日志中的url是海量的,并且都是重复的。以url为例,统计url中出现频率次数前5的url,并按出现次数的降序排序,我们可以通过linux sort、uniq、awk、head命令来统计...
分类:编程语言   时间:2015-01-29 09:27:01    阅读次数:167
linux下scoket句柄查询
关于linux下scoket打开超过设置的参数,并且网站应用打开比较慢,和报错toomaryopenfiles错误时。首先查询当前服务器的句柄数量#lsof-n|awk‘{print$2}‘|sort|uniq-c|sort-nr|more前列是句柄数量后列是进程编号#ps-aef|grep7191查看进程编号对应的进程再增加openfile的数量使用u..
分类:系统相关   时间:2015-01-28 19:53:14    阅读次数:306
Clone Graph
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:其他好文   时间:2015-01-23 21:28:32    阅读次数:238
[LeetCode] Clone Graph
Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled uniq...
分类:其他好文   时间:2015-01-22 17:52:10    阅读次数:117
个人记录
mysqldump-uuser-hhost-ppasswddb|gzip-9>/tmp.gzlinux netstat-n|awk‘/^tcp/{++state[$NF]}END{for(iinstate)printi,"\t",state[i]}‘ 并发1 看CPU核数 grep‘modelname‘/proc/cpuinfo|wc-l2对连接的IP按连接数量进行排序 netstat-ntu|awk‘{print$5}‘|cut-d:-f1|sort|uniq-c|..
分类:其他好文   时间:2015-01-22 15:50:04    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!