我的apache怎么启动不了?
我用的as,在http.conf中最后添加的内容如下,
Listen 8888
Listen 8100
<VirtualHost 192.168.1.200:8888>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/ipvhost1
DirectoryIndex index.htm index.php index.html
</VirtualHost>
<VirtualHost 192.168.1.200:8100>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/ipvhost2
DirectoryIndex index.htm index.php index.html
</VirtualHost>
重新启动apache后提示:
Starting httpd: [Thu Nov 17 11:46:38 2005] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.1.200 (check DNS) -- or specify an explicit ServerName
[Thu Nov 17 11:46:38 2005] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.1.200 (check DNS) -- or specify an explicit ServerName
(13)Permission denied: make_sock: could not bind to address [::]:8100
no listening sockets available, shutting down
Unable to open logs
[FAILED]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有指定servername,在virtualhost容器里面
<VirtualHost 192.168.1.200:8888>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/ipvhost1
DirectoryIndex index.htm index.php index.html
</VirtualHost>
没指定就是默认的本机把?
我怎么在win下试着没问题
<VirtualHost 192.168.1.200:8888>
DocumentRoot /var/www/ipvhost2
<Directory "/var/www/ipvhost2">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
这样写也有错
Starting httpd: [Thu Nov 17 12:11:18 2005] [error] (EAI 2)Name or service not known: Failed to resolve server name for 192.168.1.200 (check DNS) -- or specify an explicit ServerName
(13)Permission denied: make_sock: could not bind to address [::]:8100
no listening sockets available, shutting down
Unable to open logs
[FAILED]