关于Apache 启动[xxxxxx/docs/dummy-host.example.com] does not exist
1.用管理员运行Dos 启动服务
用Dos 启动服务会报相关错误,方便定位错误。
httpd -k start 启动服务
httpd -k stop/httpd -k shutdown 关闭服务
[xxxxxx/docs/dummy-host.example.com] does not exist
出现这个错误的原因是 在extra/httpd-vhosts.conf 文件存在不必要的模板,下面为模板:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
解决方法是将模板删除或者注释掉,如果没有用到 httpd-vhosts.conf文件可以在httpd.conf中注销引用