Name: netstat
function Description:Displays the network status.Syntax:Netstat [-accefghilmnnoprstuvvwx][-aSupplementary Note:Use the NETSTAT directive to let you know the network situation of the entire Linux system.Parameters:A or--all displays the sockets in all lines.-aThe-C or--continuous continues to list network status.-C or--cache displays the router configuration's cache information.-E or--extend
Original centos7.0 no netstat and ifconfig command issuesYum Install wgetRunning Yum install net-tools is OK.The default CentOS already has OpenSSH installed, even if you are minimizing the installation. So there is no introduction to the installation of OpenSSH.SSH configuration:1. Modify the Vi/etc/ssh/sshd_config to remove and modify the parameter values according to the parameter annotations that the template will modify:Port 22 Specifies the port
To create a project in the past two days, you must configure resin3.0.17 + apache2.0.58 + oracle92 + myeclipse4.0 + eclipse3.1. Since Oracle occupies several ports, when resin and Apache are installed on its own, the port is occupied by errors .. We will summarize some problems in the configuration process over the past two days. We hope that you will face fewer detours in the future .. Haha...
First, after encountering these problems, I want to know whether those programs occupy these windows,
Linux ps and netstat details, linuxnetstat details
In linux, netstat-anp displays the PID of all tcp udp and UNIX host internal communication J processes.
Ps-a PID of the current Terminal Process
PID of all ps-aux Processes
Head header:USER UsernameUID User ID)PID Process ID (Process ID)PPID Parent Process ID (Parent Process id)SID Session ID (Session id)% CPU usage of cpu Processes% MEM process memory usag
# netstat -a | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost:30037 *:* LISTEN udp 0 0 *:bootpc *:*
Excuse me
Local address Foreign addresses external address
What do these two addresses mean, don't understand?
Reply content:
# netstat
Netstat is used to display statistics related to IP, TCP, UDP, and ICMP protocols. It is generally used to check the network connection of each port on the local machine.
Command Used to monitor system resources for a long time: (view the connection status of tcp connections)
Netstat-n-c | grep tcp
Parameter description:
-R, -- route display routing table
-I, -- interfaces = [
-I, -- interfaces display
://117.40.239.9/bbs/index.phpWebbench-simple Web Benchmark 1.5Copyright (c) Radim Kolar 1997-2004, GPL Open sourcesoftware.Benchmarking:get http://117.40.239.9/bbs/index.phpClients, running Sec.speed=8115 pages/min, 28184 bytes/sec.requests:2705 susceed, 0 failed. test Result: Through Webbech pressure test, cacti monitor netstat different network state concurrent connection number. When the Linux client tests the Client Connection server, it acce
] [-t] Options and Parameters:-B : When you enter free directly, the unit displayed is Kbytes, we can use B (bytes), M (Mbytes) K (Kbytes), and G (GBytes) to display the unit! -T : The final result of the output, showing the total amount of solid memory and swap.
Eg: Displays the current system memory capacityUname: Access to system and core related consulting
uname [-asrmpi] Options and Parameters:- A: All system related information, including the following d
Netstat commandShow Network ConnectionsUse formattingNetstat optionCommon options:-t:tcp the relevant connection of the Protocol, the connection has its state; FSM (finate);-U:UDP Related connections-w:raw Socket related connections-L: Connection in listening state-A: all States-N: Displays IP and port in digital format;-E: Extended format-P: Show the relevant process and PID;Common combinations:-tan,-uan,-TNL,-UNL,-TUNLPThis article from "Wang Liming
execute the following command: #netstat-N | awk '/^tcp/{++state[$NF]} END { for(KeyinchState) Print key."\ t". State[key]} ' will get a result similar to the following, the exact number will be different: fin_wait_1286fin_wait_2960syn_sent3Last_ack +CLOSING1CLOSED $SYN_RCVD144time_wait2520established352#差不多等于连接的并发数这条命令可以把当前系统的网络连接状态分类汇总. This statement was seen at the feast, and it was said to have been obtained from Wang Lu, the technical director of
Ask the experts to check the increasing Recv-Q in netstat. Why? -- Linux general technology-Linux technology and application information. For details, refer to the following section. The client uses persistent connections to the server. the client sends a request to the server. After processing, the server sends the data to the client. after the system runs for a period of time, the server cannot receive the data sent from the client, but the client l
# Netstat-an|awk '/tcp/{print $6} ' |sort|uniq-cCLOSINGEstablished298 Fin_wait1Fin_wait29 Last_ack7 LISTEN103 SYN_RECV5204 time_waitStatus: DescriptionCLOSED: No connection is active or in progressLISTEN: The server is waiting to enter the callSYN_RECV: A connection request has arrived, waiting for confirmationSyn_sent: Application has started, open a connectionEstablished: Normal data transfer statusFIN_WAIT1: Application says it's doneFin_wait2: The
# Netstat-an|awk '/tcp/{print $6} ' |sort|uniq-c 16 closing established 298 fin_wait1 NBSP;13 Fin_wait2nbs P 9 last_ack 7 listen 103 syn_recv 5204 time_wait Status: Description closed: No connection Yes Active or in progress listen: The server is waiting to enter the call SYN_RECV: A connection request has arrived, wait for confirmation Syn_sent: application has started, open a connection established: Normal data transfer status Fin_ WAIT1: T
This article for Bo Master original, without permission not reproduced:During Linux operations, it is often necessary to see the process and port number of the running project, where the following commonly used commands are summarized:1. View the Java project running on the system and view the process numberThe command used here is: Ps-ef|grep JavaThis was told in the previous article, the address is: http://www.cnblogs.com/zjdxr-up/p/8405982.html.2.lsof command: Check the port according to the
pipeline form
Where TCP6 and TCP are counted together
2.1 awk ProcessingNF indicates number of filed because number accumulates to the last, that is, the last column.(awk in N number F field R row S split, such as Rs=row split, nr= number of row numbers)
[emailprotected]:~# netstat -an | awk ‘/^tcp/{++s[$NF]}END{for(i in s){print i,s[i]}}‘LISTEN 6ESTABLISHED 1
2.2 Python ProcessingCounter is not used here to determine that
1. Conclusion: SS command is more powerful than netstat, providing more functions and higher performance.2, display the current system socket occupies the overall macro situation.Ss-sWhen there are too many sockets created, there is a problem with the system configuration.3, display TCP socket condition SS-A-tShow UDP socket Case SS-A-U4, show a port number is occupied by which process, using Lsof-i udp:53Or, show TCP port 53rd is occupied by WHO, usi
netstatAnd lsof both are tools under Linux that can be used to view the network status of the system.Netstat-iDisplay the interface table, which is eth0,wlan0 these-rDisplay the routing table, $route as shown in the command-gShow multicast
$netstat -rShow route table, flag means the followingA Receive all multicast at this interface.B OK broadcast.D Debugging ON. M Promiscuous Mode.O No ARP at this interface.P P2P connection at this interface. R
Introduced
The number of concurrent connections refers to the ability of a firewall or proxy server to handle its business information flow, is the maximum number of point-to-point connections that a firewall can handle at the same time, reflecting the ability of the firewall device to access and link state tracking for multiple connections, and the size of this parameter directly affects the maximum amount of information that the firewall can support.
Implementation methods
Use the following
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.