windows下apache2.4服务安装、卸载与使用 sc delete apache2.4无效

  • 安装服务

命令1:httpd -k install 服务名字为apache的版本如apache2.4

命令2:httpd -k install -n apache 指定服务名安装

  • 卸载服务

命令1:httpd -k uninstall 卸载默认名服务如apache2.4,如果你的服务不是apache2.4会报错

命令2:httpd -k uninstall -n apache2.4 卸载指定名服务

网上说的什么sc delete apache2.4根本没用,可能是已不适用现有版本的apache

  • 启动、停止、重启服务

httpd -k restart

httpd -k start

httpd -k stop

net start apache2.4

net stop apache2.4

猜你喜欢

转载自blog.csdn.net/thinkcg/article/details/82317628