1. Use lsof
lsof -i: port number to see if a port is occupied
lsof is not installed error: -bash: lsof: command not found
lsof install: yum install lsof
2. Use the netstat
use netstat -anp | grep 80
1. Use lsof
lsof -i: port number to see if a port is occupied
lsof is not installed error: -bash: lsof: command not found
lsof install: yum install lsof
2. Use the netstat
use netstat -anp | grep 80