Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache启动错误,所有日志文件均为空_Apache_Localhost_Ubuntu 12.04 - Fatal编程技术网

Apache启动错误,所有日志文件均为空

Apache启动错误,所有日志文件均为空,apache,localhost,ubuntu-12.04,Apache,Localhost,Ubuntu 12.04,当我尝试在ubuntu中启动apache2时,它显示以下错误 * Starting web server apache2 AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8 AH00558: apache2: Could not

当我尝试在ubuntu中启动apache2时,它显示以下错误

* Starting web server apache2                                                     
  AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8
  AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
  (98)Address already in use: AH00072: make_sock: could not bind to address 127.0.0.1:8080
  no listening sockets available, shutting down
  AH00015: Unable to open logs
  Action 'start' failed.
  The Apache error log may have more information.
  * 
  * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
以及
var/log/apache2/
文件
error.log
acces.log
文件中的日志文件在清空后未更新


请帮我解决这个问题。

可能其他服务已经在使用端口8080。跑

# netstat -lnpt
看看是什么