Apache启动命令
-
进入目录 Apache24/bin
D:Apache24/bin> -
安装apache服务器
D:Apache24/bin> httpd.exe -n ‘myApacheServer’ -k install -
修改配置文件 Apache24/conf/httpd.conf
# 路径
Define SRVROOT “D:\Apache24”
# 服务地址
Define WEBOOT “E:\workSpace”
ServerRoot “${SRVROOT}”
# 端口号
Listen 80
# 名称
ServerName localhost:80 -
测试该服务的配置文件
D:Apache24/bin> httpd.exe -n ‘myApacheServer’ –t -
启动apache服务器
D:Apache24/bin> httpd.exe -n ‘myApacheServer’ -k start -
移除apache服务器
D:Apache24/bin> httpd.exe -n ‘myApacheServer’ -k uninstall -
停止apache服务器
D:Apache24/bin> httpd.exe -n ‘myApacheServer’ -k stop -
重启apache服务器
D:Apache24/bin> httpd.exe -n ‘myApacheServer’ -k restart