nmap -sT localhost
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2009-09-10 10:47 KST
Interesting ports on domain (127.0.0.1):
(The 1650 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
53/tcp open domain
80/tcp open http
110/tcp open pop3
443/tcp open https
953/tcp open rndc
3306/tcp open mysql
5050/tcp filtered mmcc