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="ouhou-p-13863592.html" target="_blank">第九次任务</a> <br/><a href="ouhou-p-13851367.html" target="_blank">第八次任务</a> <br/><a href="ouhou-p-13846005.html" target="_blank">第七次任务</a> <br/><a href="ouhou-p-13839507.html" target="_blank">第六次任务</a> <br/><a href="ouhou-p-13823546.html" target="_blank">第四天半任务</a> <br/><a href="ouhou-p-13823533.html" target="_blank">第四天任务</a> <br/><a href="ouhou-p-13812655.html" target="_blank">第三天任务</a> <br/><a href="ouhou-p-13804990.html" target="_blank">第二天任务</a> <br/><a href="ouhou-p-13797902.html" target="_blank">第一天任务</a> <br/><a href="nibabadezuzong-p-13882441.html" target="_blank">第⑩天任务</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="knightluffy-p-5597911.html" target="_blank">Mac文明5汉化</a> <br/><a href="knightluffy-p-5470017.html" target="_blank">【win10】可能解决开始菜单无法打开的问题</a> <br/><a href="knightluffy-p-5373579.html" target="_blank">0001: unable to locate the content swf directory: app:/mod/win</a> <br/><a href="knightluffy-p-5275136.html" target="_blank">不安装任何软件自己进行硬盘4K对齐检测</a> <br/><a href="knightluffy-p-4898887.html" target="_blank">『Backup』不用JTAG修好你的Lumia死砖?绝对行!</a> <br/><a href="knightluffy-p-3529230.html" target="_blank">enum值与string的转换</a> <br/><a href="knightluffy-p-3256076.html" target="_blank">浦发银行出现:部件'InstallCertListAx.ocx'或其附件之一不能正确注册:一个文件丢失 解决</a> <br/><a href="knightluffy-p-3220403.html" target="_blank">VS2010 Ultimate英文版下载</a> <br/><a href="knightluffy-p-3203567.html" target="_blank">vs2012 XNA</a> <br/><a href="Aurora-y-p-14279682.html" target="_blank">celery异步发邮件</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="Aurora-y-p-14203287.html" target="_blank">Mysql事物原理及锁</a> <br/><a href="Aurora-y-p-14202205.html" target="_blank">Oauth2.0认证 + 微博三方登陆</a> <br/><a href="Aurora-y-p-14035158.html" target="_blank">Vue的封装 </a> <br/><a href="Aurora-y-p-14034802.html" target="_blank">mysql主从同步原理</a> <br/><a href="Aurora-y-p-14034728.html" target="_blank">mysql主从服务器</a> <br/><a href="Aurora-y-p-14009824.html" target="_blank">TCP三次握手和四次挥手</a> <br/><a href="Aurora-y-p-14007373.html" target="_blank">视频播放页面接口开发 </a> <br/><a href="Aurora-y-p-13993144.html" target="_blank">注册七牛云</a> <br/><a href="Aurora-y-p-13947844.html" target="_blank">章节页面接口开发</a> <br/><a href="ouhou-p-13881861.html" target="_blank">第十次作业</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>