用的是新的小皮面板,最近下的安全狗安装需要服务名,网上的资料有点杂(水),就自己捣鼓了半小时
首先进入管理员powershell
.\httpd.exe -k -n apache2.4
-n 后面是名字参数,可以任意输入
然后win+r,输入services.msc,找到刚注册的服务启动就行了
问题:
在执行.\httpd.exe -k -n apache2.4
报了个错
解决方案:
进入apache的bin目录
cd d:/phpstudy_pro/extensions/apache2.4.39/bin
.\httpd.exe -k install
.\httpd.exe -k -n apache2.4
之后如上操作就可