apache无法重启,要重启机器才能该配置?
xxr@xxr-desktop:/etc/apache2$ /etc/init.d/apache2 restart
* Restarting web server apache2 apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Mar 01 19:45:25 2009] [warn] NameVirtualHost *:81 has no VirtualHosts
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
[Sun Mar 01 19:45:25 2009] [warn] NameVirtualHost *:81 has no VirtualHosts
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[fail]
有几个错误:
1.apache2 restart需要用到管理员权限,命令前面加sudo 即可。
2.ServerName没有定义
3.NameVirtualHost 里面有一些配置错误,需要将详细配置列出来才能进一步分析。
建议有空多看看http://docs.gnulife.cn/ApacheMenu/ , 这样不至于犯一些过于粗浅的错误。还有,这类问题更适合邮件或论坛交流。blog一般更适合用于经验分享,那意味着,写blog一般是尽量的解决问题,而不是提出问题。