-
Notifications
You must be signed in to change notification settings - Fork 12
/
cmd.html
83 lines (72 loc) · 2.93 KB
/
cmd.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="MK2's blog,生命是一场幻觉,代码是一段人生。">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://registry.npmmirror.com/typo.css/1/files/typo.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/bootstrap/3/files/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://registry.npmmirror.com/bootstrap/3/files/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="/css/prettify.css">
<link rel="stylesheet" href="/css/mk2.css">
<title>常用命令</title>
</head>
<body>
<div id="wrapper" class="typo">
<div id="header">
<h3><a href="/">Home</a> | <a href="../index.html">Prev</a></h3>
</div> <!-- #header -->
<div id="content">
<h1 id="常用命令">常用命令</h1>
<h2 id="网络连接数">网络连接数</h2>
<pre><code class="language-bash">$ netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
TIME_WAIT 9
CLOSE_WAIT 3
ESTABLISHED 355
</code></pre>
<h2 id="监听端口">监听端口</h2>
<pre><code class="language-bash">lsof -p $id
</code></pre>
<h2 id="最大文件数">最大文件数</h2>
<pre><code class="language-bash">cat /proc/sys/fs/file-max
</code></pre>
<h2>Comments</h2>
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://fengmk2github.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<script id="dsq-count-scr" src="//fengmk2github.disqus.com/count.js" async></script>
</div> <!-- #content -->
<div id="footer">
</div> <!-- #footer -->
</div> <!-- #wrapper -->
<a href="https://github.com/fengmk2" id="fork">
<img alt="Fork me on GitHub" src="/images/forkme_right_green.png">
</a>
<!-- Specific to this page -->
<script src="https://registry.npmmirror.com/jquery/2/files/dist/jquery.min.js"></script>
<script src="https://registry.npmmirror.com/bootstrap/3/files/dist/js/bootstrap.min.js"></script>
<script src="/js/prettify.js"></script>
<script>
$(function() {
$('pre code').parent().addClass('prettyprint');
prettyPrint();
});
</script>
</body>
</html>