/********************************** *********************************** * Author : Samson * Date : 04/08/2014 * Test platform : * Linux debian-IDS 3.13.7 * GNU bash, version 4.2.37 * ******************************** ***********************************/
The first method:
root@debian:/home/# netstat -ant Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:33223 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp6 0 0 ::1:25 :: :* LISTEN tcp6 0 0 :::60042 :::* LISTEN tcp6 0 0 :::111 :::* LISTEN tcp6 0 0 :::80 :::* LISTEN tcp6 0 0 111.111.111.120:80 111.111.111.114 :1119 ESTABLISHED tcp6 0 0 111.111.111.120:80 111.111.111.114:1123 ESTABLISHED tcp6 0 0 111.111.111.120:80 111.111.111.114:1125 TIME_WAIT tcp6 0 0 111.1 11.111.120:80 111.111.111.114:1112 TIME_WAIT tcp6 0 0 111.111.111.120:80 111.111.111.114:1110 TIME_WAIT tcp6 0 0 111.111.111.120:80 111.111.111.114:1122 ESTABLISHED tcp6 0 0 111.111.111.120:80 111.111.111.114 :1114 TIME_WAIT tcp6 0 0 111.111.111.120:80 111.111.111.114:1117 TIME_WAIT
The second method:
root@debian:/home# lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME apache2 2301 root 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 2497 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 2498 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 2499 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 2500 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 2501 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN ) apache2 6108 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 6117 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN) apache2 6118 www-data 4u IPv6 7298 0t0 TCP *:http (LISTEN)< Br>
//mysql default port
root@debian:/home# lsof -i:3306 COMMAND P ID USER FD TYPE DEVICE SIZE/OFF NODE NAME mysqld 2992 mysql 10u IPv4 9546 0t0 TCP localhost:mysql (LISTEN)
zh-CN"],null,[0.65745854],zh-CN"]]]
First find the iptables file Generally under /etc/sysconfig Then vi iptables Just like add
This article address: http://www.cnblogs.com/archimedes/p/bash-shell1.html, please indicate the sour
We all know that system function calls are the interfaces that the Unix/Linux operating system provi
The introduction of the information age has brought great convenience and benefits to our l
Linuxshell implements script to automatically clean up rman backup files
Explain the find and locate commands for finding directories and files in Linux
How to use soft links to solve directory transfer problems under Linux
Linux file name look which, whereis, locate
CentOS6.4 yum command to install php5.2.17
Gcc parameters commonly used under Linux
Linux installation U disk boot
How to enter the win8 control panel
Unable to update to Windows 8.1, "0xc1900101-0x40017" error resolution
How to set the bottom right corner time of Win7 system
Win8.1 game TP prompts self-loading initialization failure can not continue LOL, CF and other games
How to protect computers from viruses.
Windows 10 Enterprise Edition Free Trial 90 Days August 1st to October 1st End
How to restore the original arrangement of Win10 desktop icons?