转载:http://blog.chinaunix.net/u1/39714/showart_426731.html
启动Apache Start时出现异常:
Syntax error on line 198 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:
ServerAdmin takes one argument, The email address of the server administrator
解决方法:
将
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin
启动Apache Start时出现异常:
Syntax error on line 198 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:
ServerAdmin takes one argument, The email address of the server administrator
解决方法:
将
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
ServerAdmin
改为:
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#ServerAdmin
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#ServerAdmin
配置完毕后:
运行--->cmd-->键入: d: 注释:进入D盘,由于我的apache安装在D盘键入: cd apache2 注释:进入D:\apache2\目录
键入: cd bin 注释:进入D:\apache2\bin\ 目录
键入: httpd.exe -k install -n apache2 注释:添加了apache这个服务了,下面我们要启动它
键入: net start apache2 注释:启动apache2服务
关闭服务器是: net stop apache2
OK,问题解决
运行--->cmd-->键入: d: 注释:进入D盘,由于我的apache安装在D盘键入: cd apache2 注释:进入D:\apache2\目录
键入: cd bin 注释:进入D:\apache2\bin\ 目录
键入: httpd.exe -k install -n apache2 注释:添加了apache这个服务了,下面我们要启动它
键入: net start apache2 注释:启动apache2服务
关闭服务器是: net stop apache2