1、cmd打开命令行窗口,切换到apache安装目录下
cd c:\mas\trsmas\win31\apache\bin
(推荐教程:apache从入门到精通)
2、安装apache服务器
installed apache services
httpd.exe -k install
3、修改配置文件
编辑文件:<安装目录>\conf\httpd.conf
4、测试该服务的配置文件
httpd.exe -n "myservicename" –t
5、启动已安装的apache服务
httpd.exe -k start
6、测试安装结果
http://localhost:port
以上就是windows下启动apache的方法的详细内容。
