The webserver will fail to bind to the concerned port i.e. 80 if it is open by another process. In such cases, we need to identify the process which occupies the port and need to terminate it.The following command will show the existing connections to port 80
#
netstat -an | grep \\.80
orYou can identify the apache process using the command as well
# pgrep httpd
orThe process associated with the port number using the following command:
#lsof -i tcp:80
No comments:
Post a Comment