zoukankan      html  css  js  c++  java
  • 打赏 jQuery火箭图标返回顶部代码</h1> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <div style=" height: 200px; overflow:hidden;"> <span class="pre-scrollable"><div id="cnblogs_post_body" class="blogpost-body"> <p>1)netstat (*****)查看网络状态<span style="color: rgba(255, 0, 0, 1)">lntup</span>或an</p> <p>    <span style="color: rgba(255, 0, 0, 1)">  1.[listening|-l]</span></p> <p><span style="color: rgba(255, 0, 0, 1)">      2.[--numeric|-n]</span></p> <p><span style="color: rgba(255, 0, 0, 1)">      3.[--tcp|-t]</span></p> <p><span style="color: rgba(255, 0, 0, 1)">      4.[--udp|-u]</span></p> <p><span style="color: rgba(255, 0, 0, 1)">      5[--program|-p]</span></p> <p><span style="color: rgba(255, 0, 0, 1)">    输入:lntup</span></p> <div class="cnblogs_code"> <pre><span style="color: rgba(0, 128, 128, 1);user-select:none"> 1</span> 显示协议统计和当前 TCP/<span style="color: rgba(0, 0, 0, 1)">IP 网络连接。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none"> 2</span> <span style="color: rgba(0, 128, 128, 1);user-select:none"> 3</span> NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-<span style="color: rgba(0, 0, 0, 1)">t] [interval] </span><span style="color: rgba(0, 128, 128, 1);user-select:none"> 4</span> <span style="color: rgba(0, 128, 128, 1);user-select:none"> 5</span> -<span style="color: rgba(0, 0, 0, 1)">a 显示所有连接和侦听端口。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none"> 6</span> -<span style="color: rgba(0, 0, 0, 1)">b 显示在创建每个连接或侦听端口时涉及的可执行程序。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none"> 7</span> <span style="color: rgba(0, 0, 0, 1)"> 在某些情况下,已知可执行程序承载多个独立的 </span><span style="color: rgba(0, 128, 128, 1);user-select:none"> 8</span> <span style="color: rgba(0, 0, 0, 1)"> 组件,这些情况下,显示创建连接或侦听端口时涉 </span><span style="color: rgba(0, 128, 128, 1);user-select:none"> 9</span> <span style="color: rgba(0, 0, 0, 1)"> 及的组件序列。此情况下,可执行程序的名称 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">10</span> <span style="color: rgba(0, 0, 0, 1)"> 位于底部[]中,它调用的组件位于顶部,直至达 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">11</span> 到 TCP/<span style="color: rgba(0, 0, 0, 1)">IP。注意,此选项可能很耗时,并且在您没有 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">12</span> <span style="color: rgba(0, 0, 0, 1)"> 足够权限时可能失败。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">13</span> -e 显示以太网统计。此选项可以与 -<span style="color: rgba(0, 0, 0, 1)">s 选项结合使用。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">14</span> -<span style="color: rgba(0, 0, 0, 1)">f 显示外部地址的完全限定域名(FQDN)。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">15</span> -<span style="color: rgba(0, 0, 0, 1)">n 以数字形式显示地址和端口号。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">16</span> -<span style="color: rgba(0, 0, 0, 1)">o 显示拥有的与每个连接关联的进程 ID。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">17</span> -<span style="color: rgba(0, 0, 0, 1)">p proto 显示 proto 指定的协议的连接;proto 可以是下列任 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">18</span> 何一个: TCP、UDP、TCPv6 或 UDPv6。如果与 -<span style="color: rgba(0, 0, 0, 1)">s 选 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">19</span> <span style="color: rgba(0, 0, 0, 1)"> 项一起用来显示每个协议的统计,proto 可以是下列任 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">20</span> <span style="color: rgba(0, 0, 0, 1)"> 何一个: IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP </span><span style="color: rgba(0, 128, 128, 1);user-select:none">21</span> <span style="color: rgba(0, 0, 0, 1)"> 或 UDPv6。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">22</span> -<span style="color: rgba(0, 0, 0, 1)">r 显示路由表。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">23</span> -<span style="color: rgba(0, 0, 0, 1)">s 显示每个协议的统计。默认情况下,显示 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">24</span> <span style="color: rgba(0, 0, 0, 1)"> IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 和 UDPv6 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">25</span> 的统计;-<span style="color: rgba(0, 0, 0, 1)">p 选项可用于指定默认的子网。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">26</span> -<span style="color: rgba(0, 0, 0, 1)">t 显示当前连接卸载状态。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">27</span> <span style="color: rgba(0, 0, 0, 1)"> interval 重新显示选定的统计,各个显示间暂停的间隔秒数。 </span><span style="color: rgba(0, 128, 128, 1);user-select:none">28</span> 按 CTRL+<span style="color: rgba(0, 0, 0, 1)">C 停止重新显示统计。如果省略,则 netstat </span><span style="color: rgba(0, 128, 128, 1);user-select:none">29</span> 将打印当前的配置信息一次。</pre> </div> <p><span style="color: rgba(255, 0, 0, 1)">2)</span><span style="color: rgba(0, 0, 0, 1)">查看端口</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    lsof-i  :port</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    chattr     change file attributess</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    lksattr  list file attributes</span></p> <p>3)什么是字符集?</p> <p><span style="color: rgba(0, 0, 0, 1)">    简单的来说就是一套文字符号以及字符编码,(GBK,UTF-8)</span></p> <p><span style="color: rgba(0, 0, 0, 1)">4)隐藏系统的版本: </span></p> <p><span style="color: rgba(0, 0, 0, 1)">    1.cat /dev/null >/etc/issue</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    2.>/etc/issue</span></p> <p><span style="color: rgba(0, 0, 0, 1)">5)锁定系统文件: </span></p> <p><span style="color: rgba(0, 0, 0, 1)">    上锁:chattr  +i /etc/passwd   /etc/shadow  /etc//group  /etc/gsadow  /etc/inittab</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    解锁:chattr  -i /etc/passwd   /etc/shadow  /etc//group  /etc/gsadow  /etc/inittab</span></p> <p><span style="color: rgba(0, 0, 0, 1)">6)Linux基础优化</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -1.+不同root,添加普通用户,通过sudo授权管理</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -2.更改默认的远程连接ssh服务端口及禁止root用户远程连接</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -3.定时自动更新服务器时间</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -4.配置yum更新源,从国内更新源下载安装yum包</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -5.关闭selinux及iptables(iptables工作场景如果有wan ip 一般要打开,高并发除外)</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -6.调整文件描述的数量</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -7.定时清理/var/spool/clientmquene/目录的垃圾文件,防止inodes节点被占满<br></span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -8.精简开机启动服务</span></p> <p><span style="color: rgba(0, 0, 0, 1)">    -9.Linux内核参数优化/etc/syysctl.conf,  sysctl  -p  生效</span></p> </div> </span> </div> <div style="text-align: center;"> <a href="https://www.cnblogs.com/liang-io/p/9287120.html" target="_blank" style="font-size: 16px;background-color: rgb(24, 144, 255); color: white;padding: 8px;padding-left: 30px;padding-right: 30px;border-radius: 2rem;">查看全文</a> </div> </li> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <li class="ul-li" style="padding-left:15px;padding-right: 15px;"> <b>相关阅读:</b><br> <nobr> <a href="ToTOrz-p-7285018.html" target="_blank">poj 2349 Arctic Network</a> <br/><a href="ToTOrz-p-7284489.html" target="_blank">hdu 1596 find the safest road</a> <br/><a href="ToTOrz-p-7275638.html" target="_blank">Codeforces 768B. Code For 1</a> <br/><a href="ToTOrz-p-7274752.html" target="_blank">Codeforces 448C. Painting Fence</a> <br/><a href="ToTOrz-p-7270368.html" target="_blank">Problem D. Ice Cream Tower(2016 China-Final)</a> <br/><a href="ToTOrz-p-7270291.html" target="_blank">poj 2785 4 Values whose Sum is 0</a> <br/><a href="ToTOrz-p-7270227.html" target="_blank">Codeforces 797C. Minimal string</a> <br/><a href="ToTOrz-p-7260810.html" target="_blank">Codeforces 264A. Escape from Stones</a> <br/><a href="lmjer-p-9471219.html" target="_blank">乌龟棋(noip2010)</a> <br/><a href="lmjer-p-9470859.html" target="_blank">noip2018模拟题(类背包+贪心)</a> <br/> </nobr> </li> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <li class="list-group-item from-a mb-2" style="margin:15px;"> 原文地址:https://www.cnblogs.com/liang-io/p/9287120.html </li> </ul> </div> <!-- 右侧开始 --> <div class="right-kd" style="margin: auto;margin: 0px;float: left;"> <ul class="right-kd" style="word-break:break-all;border: 1px solid #dfdfdf;border-radius: 3px 3px 3px 3px;padding: 0px;margin: 0px;"> <li class="ul-li-bg ul-li-title" aria-current="true" style="padding-left:15px;padding-right: 15px;"> 最新文章 </li> <li class="ul-li" style="padding-left:15px;padding-right:15px;"> <nobr> <a href="William-1234-p-4317158.html" target="_blank">第六天学习内容 类</a> <br/><a href="William-1234-p-4312287.html" target="_blank">第五天学习内容 for循环,嵌套</a> <br/><a href="William-1234-p-4310581.html" target="_blank">第四天学习内容 if switch for 的练习</a> <br/><a href="William-1234-p-4307905.html" target="_blank">第三天学习内容 if--else</a> <br/><a href="William-1234-p-4305543.html" target="_blank">用条件运算符编写程序判断一个人的体重是否为标准体重</a> <br/><a href="William-1234-p-4304656.html" target="_blank">第一天学习内容</a> <br/><a href="liumengliang-p-11189958.html" target="_blank">图论 最短路,最小生成树</a> <br/><a href="liumengliang-p-11187880.html" target="_blank">c++基础</a> <br/><a href="ZefengYao-p-8747838.html" target="_blank">poj 1795 DNA Laboratory</a> <br/><a href="ZefengYao-p-8735459.html" target="_blank">poj 2836 Rectangular Covering</a> <br/> </nobr> </li> </ul> <ul class="right-kd" style="word-break:break-all;border: 1px solid #dfdfdf;border-radius: 3px 3px 3px 3px;padding: 0px;margin-top: 10px;"> <li class="list-group-item ul-li-bg ul-li-title" aria-current="true" style="padding-left:15px;padding-right: 15px;"> 热门文章 </li> <li class="ul-li" style="padding-left:15px;padding-right: 15px;"> <nobr> <a href="ZefengYao-p-8734520.html" target="_blank">poj 3254 Corn Fields</a> <br/><a href="ZefengYao-p-8733669.html" target="_blank">第13届景驰-埃森哲杯广东工业大学ACM程序设计大赛部分题解</a> <br/><a href="ZefengYao-p-8727601.html" target="_blank">poj 2441 Arrange the Bulls</a> <br/><a href="ZefengYao-p-8724602.html" target="_blank">《挑战程序设计竞赛》P196 铺砖问题</a> <br/><a href="ZefengYao-p-8657011.html" target="_blank">pat 团体天梯赛 L3-015. 球队“食物链”</a> <br/><a href="ZefengYao-p-8647679.html" target="_blank">pat 1074. 宇宙无敌加法器(20)</a> <br/><a href="ZefengYao-p-8647471.html" target="_blank">pat 团体天梯赛 L1-039. 古风排版</a> <br/><a href="ZefengYao-p-8591882.html" target="_blank">pat 团体天梯赛 L2-012. 关于堆的判断</a> <br/><a href="ToTOrz-p-7336925.html" target="_blank">HDU 1010 Prime Ring Problem</a> <br/><a href="ToTOrz-p-7294718.html" target="_blank">Codeforces 735D. Taxes</a> <br/> </nobr> </li> </ul> </div> </div> </div> <div style="clear: both;"></div> <!-- 栅栏结束 --> <div class="kd" style="margin: auto;"> <div style="font-size:0.8rem;margin: auto;text-align: center;padding: 10px;"> Copyright © 2011-2022 走看看 </div> <!-- 引入底部 --> <!-- 百度自动推送js --> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else{ bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!-- 百度自动推送js --> </div> </div> <script src="https://common.cnblogs.com/scripts/jquery-2.2.0.min.js"></script> <script src="https://www.cnblogs.com/js/blog-common.min.js"></script> <script src="http://common.cnblogs.com/script/encoder.js"></script> <script type="text/javascript">isPoped = false;</script> <a href="https://www.aliyun.com/daily-act/ecs/activity_selection?userCode=1fogmr4h" id="redirect_url"></a> <a href="https://www.cnblogs.com/liang-io/p/9287120.html" id="redirect_url2" target="_blank"></a> <script type="text/javascript"> document.onclick = function() { if (!isPoped) { document.getElementById("redirect_url").click(); document.getElementById("redirect_url2").click(); isPoped = true; } } </script> </body> </html>