On successful login, the output of the netstat command will show a local port opened and listening for the port you specified (refer to Figure 5).
成功登录后,netstat命令的输出将显示一个打开的、侦听指定端口的本地端口(见图5)。
The netstat options used show all (-a) TCP (-t) connections in a numeric (-n) format along with the name of the process (-p) responsible.
使用的netstat选项以数字格式(- n)显示所有(- a)TCP (- t)连接,以及所负责进程(- p)的名称。
Netstat shows the network information about the local system.
Netstat给出了有关本地系统的网络信息。
You can verify this from the output of netstat.
可以从netstat的输出中验证这一点。
With RHEL5 networking, you also have the standard UNIX commands you should already be accustomed to, such as route, the netstat commands, and other utilities like ping and traceroute.
对于 RHEL5网络,您还可以使用应该已经习惯了的标准UNIX命令,例如route、netstat 命令,以及诸如ping和 traceroute 等其他实用工具。
The command netstat -a list the connections (including port Numbers); this can help you understand which connections have been made successfully.
命令netstat - a列示连接(包括端口号);这有助于您理解哪些连接已经成功完成。
You can also get extended statistic information on all platforms by using the netstat tool.
在所有平台上,还可以使用netstat工具获得更详细的统计信息。
The first thing that usually comes to mind when a system administrator hears that there might be some network contention issues is to run netstat.
当系统管理员了解到发生了网络争用问题的时候,通常想到的第一件事情就是运行netstat。
Listing 4 shows some of the options that netstat provides and the features they enable.
清单4显示了netstat提供的一些选项和它们启用的特性。
The netstat command provides many options and shows various information about the network interfaces on the system.
netstat命令提供了很多选项,可显示关于系统上的网络接口的各种信息。
Let's get back to the old standby, netstat, which displays overall network statistics.
让我们来看看以前的命令netstat,它可以显示整体网络统计信息。
Similarly, you may or may not have seen an active connection when you ran the netstat command.
同样,在运行netstat命令时,可能会看到活跃的连接,也可能看不到。
You can use netstat to display existing connections from your host to other hosts and the current state of each.
可以使用netstat显示从您的主机到其他主机的现有连接及其当前状态。
While running commands (such as netstat) can provide useful information, sometimes you need to drill down more to the packet level.
虽然运行netstat等命令可以提供有用的信息,但有时您仍然需要深入到数据包作进一步分析。
This complicates manageability of the system, as there is no fixed set of connections that will be created between the servers; for example, as might be viewed by netstat.
这增加了系统管理的复杂性,因为服务器之间要创建的连接组并不固定;例如,无法使用netstat进行查看。
One way to see which ports are currently being used on the system is by using the netstat -a command.
查看当前系统上正在使用哪些端口的一种方式就是使用netstat -a 命令。
If you see an overflow counter (through the use of netstat -s), setting a maximum length of this queue can help fix the overflow.
如果您看到一个溢出计数器(通过使用netstat- s),那么设置这个队列的最大长度可以帮助修复这种溢出情况。
Listing 4. Usage patterns for the netstat utility.
清单4.net stat实用程序的用法模式。
Part 1 of this series addressed some of the very basic flags, such as -in, that you typically use with netstat.
本系列的第1部分介绍了一些非常基本的标志,比如- in,这是netstat的一个常用标志。
Run netstat -aan, where -a shows the address of any protocol control blocks associated with the sockets.
运行netstat -Aan,其中的-a显示与套接字相关联的任何协议控制块的地址。
Part 1 addressed some of the very basic flags, such as -in, that you typically use with netstat.
第 1部分介绍了一些非常基本的标志,如-in,这是 netstat 的一个常用标志。
While running commands such as netstat can provide useful information, sometimes you need to drill down more to the packet level.
虽然运行诸如netstat之类的命令可以提供一些有用的信息,但有时您仍然需要深入到数据包级别上进行更进一步的分析。
Another handy netstat flag is the -m option.
另一个非常方便的netstat标志是- m选项。
Netstat, the equivalent of using vmstat or iostat for your memory reports, is a quick and dirty way of getting an overview of how your network is configured.
netstat(相当于您为了获得内存报告而使用的vmstat或者iostat)是获得网络配置情况概述的一种快速粗略的方法。
Let's look at the IP addresses, which are configured using netstat (see Listing 3).
现在看看IP地址,这使用netstat配置(见清单3)。
Network and memory utilization come from the Solaris netstat and prstat commands.
网络和内存使用量数据来自Solarisnetstat和prstat命令。
A lot of other utilities exist, but netstat tends to be a one-stop shop that covers the capabilities of route, ifconfig, and other standard GNU/Linux tools.
尽管存在许多其他的实用程序,但netstat 的功能很全面,它覆盖了route、ifconfig和其他标准GNU/Linux 工具的功能。
Now that you have added this behaviour in the use case model, you should also revisit our class diagram and add the Netstat class in UML, as shown in Figure 11.
既然你已经把行为加到用例模型中了,你就应当再次访问类图并且把Netstat 类加到UML中去,如图11所示。
Netstat, the equivalent of using vmstat or iostat for your memory reports, is a quick way to get an overview of how your network is configured.
netstat—相当于使用vmstat或iostat获取内存报告—是获取您的网络配置方式概览的一种快捷方法。
You can also add a couple of operations to the Netstat class, mimicking the same level of functionality that your other classes have.
你也可以把几个操作加到Netstat中,模仿同级别的其他类所实现的功能。
应用推荐