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="zhouchangju-p-9362140.html" target="_blank">记一次排查tomcat耗费CPU过高的经历</a> <br/><a href="zhouchangju-p-6488872.html" target="_blank">记录一次PHP项目报502的问题</a> <br/><a href="zhouchangju-p-4009191.html" target="_blank">工作职责与工作协调</a> <br/><a href="zhouchangju-p-4009187.html" target="_blank">如何提升团队效率</a> <br/><a href="zhouchangju-p-3725218.html" target="_blank">接手老项目的方法总结</a> <br/><a href="zhouchangju-p-3724780.html" target="_blank">如何快速确定需求的技术实现方案</a> <br/><a href="zhouchangju-p-3187670.html" target="_blank">PHP中的赋值-引用or传值?</a> <br/><a href="zhouchangju-p-3179143.html" target="_blank">性能优化-开发流程中的性能优化</a> <br/><a href="triStoneL-p-3420901.html" target="_blank">一周阅读列表(20131111-20131117)</a> <br/><a href="triStoneL-p-3417736.html" target="_blank">一周阅读列表(20131104-20131110)</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="daimaxuejia-p-14113244.html" target="_blank">xmlhttprequest获取excel,用sheetjs制作excel并导出</a> <br/><a href="daimaxuejia-p-14102121.html" target="_blank">sheet js 导出excel使用</a> <br/><a href="daimaxuejia-p-13501808.html" target="_blank">七大管理工具</a> <br/><a href="daimaxuejia-p-13410300.html" target="_blank">ajax二次封装</a> <br/><a href="daimaxuejia-p-13271919.html" target="_blank">Android混合开发 mui例子之列表页(-)</a> <br/><a href="daimaxuejia-p-13208147.html" target="_blank">sql游标使用</a> <br/><a href="daimaxuejia-p-13098839.html" target="_blank">拖拽式表单编辑器</a> <br/><a href="daimaxuejia-p-13083961.html" target="_blank">Linux新手入门:通过chmod改变文件权限</a> <br/><a href="daimaxuejia-p-13083478.html" target="_blank">Systemd 指令 </a> <br/><a href="daimaxuejia-p-13082971.html" target="_blank">zabbix agent (主动式)window部署说明</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="youziwulala-p-13282771.html" target="_blank">网址整理</a> <br/><a href="youziwulala-p-13066890.html" target="_blank">通过两坐标点计算角度</a> <br/><a href="youziwulala-p-12853098.html" target="_blank">单例</a> <br/><a href="youziwulala-p-12718136.html" target="_blank">egret 积累</a> <br/><a href="youziwulala-p-12718015.html" target="_blank">js时区转换</a> <br/><a href="youziwulala-p-12655823.html" target="_blank">数组</a> <br/><a href="youziwulala-p-12654443.html" target="_blank">环形组件</a> <br/><a href="youziwulala-p-12464002.html" target="_blank">egret启动流程</a> <br/><a href="youziwulala-p-11550472.html" target="_blank">计时器</a> <br/><a href="youziwulala-p-9608584.html" target="_blank">js严格模式</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 = true;</script> <a href="" 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>