How to Manually create an Apache Windows Service

前端 未结 6 1222
鱼传尺愫
鱼传尺愫 2021-01-30 13:04

I accidentally removed my Apache windows service trying to install another Apache web server. Does anyone know how I can create another Apache windows service from cmd? I tried

6条回答
  •  感情败类
    2021-01-30 13:46

    Did not work for me using httpd.exe -k install, I had to register apache as a service using sc.exe using:

    sc.exe create apache2.4 start= auto obj= "" password= "" DisplayName= "Apache 2.4" depend= "Tcpip/Afd" binpath= "\"c:\wamp\bin\apache\apache2.4.33\bin\httpd.exe\" -k runservice"
    

提交回复
热议问题