netstat command various parameters as follows:
-a: All
-t: TCP port specified display
-u: UDP port specified display
-l: listening socket (the so-called socket that enables applications to read and write and send and receive communication protocols (protocol) and program data) display only
-p: display the process identifier and program name, and each socket / port belongs to a program.
-n: Specifies DNS polling display IP (speed up operation)
-ntulp netstat | grep 80 // View all 80 ports use netstat -an | grep 3306 // View all 3306 port usage
-ntulp netstat | grep redis // View all redis port usage