You can use the netstat command to view the list of programs (including Apache) with TCP
ports in the LISTEN state:
# netstat -nltp
Active Internet connections (only servers)
Proto Local Address Foreign Address State PID/Program name
tcp 0.0.0.0:80 0.0.0.0:* LISTEN 2105/apache
The output from netstat (which was shortened to fit here) indicates that an instance of the apache
process with a process ID of 2105 is listening (as indicated by the LISTEN state) for connections to
any local IP address (indicated by 0.0.0.0) on port 80 (the standard HTTP port). If a different program
is listening to port 80, it is shown there. You can use the kill command to terminate the process,
but if it is something other than apache (or httpd), you should also find out why it is running.
If you don??™t see any other processes listening on port 80, it could be that you have accidentally told
Apache to listen on the same IP address and port combination in more than one place. There are
three configuration directives that can be used for this: BindAddress, Port, and Listen:
BindAddress: Enables you to specify a single IP address to listen on, or you can specify
all IP addresses using the * wildcard. You should never have more than one BindAddress
statement in your configuration file.
Pages:
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225