Problems encountered in Apache installation under WIN7

The solution to the graying out of the Apache Service Monitor Start button of the web server

Apache2.4 installation

Solution:
In the bin subdirectory of the Apache installation directory, use the following command to start the service:
httpd -k install
All errors will be displayed, check the prompt carefully

  1. port is occupied
    httpd -k install
  • Open the Apache configuration file conf/httpd.conf in the Apache installation directory
  • Find Listen 80 and change 80 to 81
  • #Listen 0.0.0.0:80 changed to #Listen 0.0.0.0:81Specifically see which httpd.conf is
  • Restart Apache to access http://localhost :81

Guess you like

Origin blog.csdn.net/weixin_43483746/article/details/83269248