# install nmap tool yum install -y nmap.x86_64 # run this command to see which ports are listening now nmap -sT -O localhost