1、利用Windows启动
打开计算机管理,找到apache服务项,选择后,右键单击,便可选择相应操作(启动、停止、重新启动)
2、利用命令行启动
首先cmd 进入apache 的bin目录例如:cd:/apache24/bin
查看版本:httpd -v
核查是否有错误信息:httpd -t
查看加载的模块:httpd -M
停止apache服务:httpd -k stop
启动apache服务:httpd -k start
重启apahce 服务:httpd -k restart
利用Windows托管服务命令:
net start apache
net restart apache
net stop apache
# 注意:需要使用管理员身份运行命令行!!!
httpd ‐k start ‐n "Apache"
# 重新启动 Apache 服务
httpd ‐k restart ‐n "Apache"
# 停止 Apache 服务
httpd ‐k stop ‐n "Apache"
3、利用Apache服务器自身的视窗打开,找到bin目录下的ApacheMonitor.exe,打开