﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-fenglin-文章分类-Ubuntu</title><link>http://www.cppblog.com/fenglin/category/15348.html</link><description>创新、创意、挑战</description><language>zh-cn</language><lastBuildDate>Wed, 03 Nov 2010 07:39:46 GMT</lastBuildDate><pubDate>Wed, 03 Nov 2010 07:39:46 GMT</pubDate><ttl>60</ttl><item><title>Ubuntu_查看当前系统所有的监听端口</title><link>http://www.cppblog.com/fenglin/articles/132276.html</link><dc:creator>风林</dc:creator><author>风林</author><pubDate>Wed, 03 Nov 2010 03:44:00 GMT</pubDate><guid>http://www.cppblog.com/fenglin/articles/132276.html</guid><wfw:comment>http://www.cppblog.com/fenglin/comments/132276.html</wfw:comment><comments>http://www.cppblog.com/fenglin/articles/132276.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fenglin/comments/commentRss/132276.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fenglin/services/trackbacks/132276.html</trackback:ping><description><![CDATA[<span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: small arial, sans-serif; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span>查看当前系统所有的监听端口:<br><br><strong>&nbsp;nc -zv localhost 1-65535</strong> <br>#后面是端口号的起始值,只列出此端口是否被使用，而不列出使用进程ID <br><br>或者<br><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 16px Simsun; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class=Apple-style-span><span style="LINE-HEIGHT: 16px; FONT-FAMILY: 'Lucida Grande', 'Trebuchet MS', Helvetica, Arial, sans-serif; FONT-SIZE: 12px; -webkit-border-horizontal-spacing: 5px; -webkit-border-vertical-spacing: 5px" class=Apple-style-span><strong style="FONT-SIZE: 12pt">sudo netstat -antup</strong></span></span><br>#列出占用端口的进程ID<br></span>
<img src ="http://www.cppblog.com/fenglin/aggbug/132276.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fenglin/" target="_blank">风林</a> 2010-11-03 11:44 <a href="http://www.cppblog.com/fenglin/articles/132276.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>