Check the occupancy of port 80 under Linux netstat –anp | grep 80
Then according to the displayed content, check the process number occupying port 80
For example: tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1253/unknow
Here 1253 is the pid/process number.
Let’s kill him: kill -s 9 1253
Then start your apache and try it.
Windows Check port 80 occupied
Summon task manager:
Tick the PID box
Enter cmd and enter netstat -ano | findstr "80"
Here 3740 is the process number that occupies 80, then find the corresponding process in the task manager and delete it ٩(×̯×)۶
Try starting apache again.
Check the occupancy of port 80 under Linux
netstat –anp | grep 80
Then according to the displayed content, check the process number occupying port 80
For example:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1253/unknow
Here 1253 is the pid/process number.
Let’s kill him:
kill -s 9 1253
Then start your apache and try it.
Windows Check port 80 occupied
Summon task manager:
Tick the PID box
Enter cmd and enter
netstat -ano | findstr "80"
Here 3740 is the process number that occupies 80, then find the corresponding process in the task manager and delete it ٩(×̯×)۶
Try starting apache again.