Ubuntu错误与apache:(98)地址已在使用

前端之家收集整理的这篇文章主要介绍了Ubuntu错误与apache:(98)地址已在使用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我尝试在Ubuntu中启动Apache时,我收到此错误
  1. (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
  2. no listening sockets available,shutting down
  3. Unable to open logs
  4. Action 'start' Failed.

我在ports.conf中有这个

  1. NameVirtualHost *:80
  2. Listen 80

这是我的vhost文件

  1. <VirtualHost *:80>
  2. ServerAdmin example@example.com
  3. ServerName rails.server.com
  4. # ServerAlias
  5. DocumentRoot /var/www/sample_app/current/public
  6. ErrorLog /var/www/sample_app/error.log
  7.  
  8. RailsEnv production
  9. <Directory "/var/www/sample_app/current/public">
  10. Options Indexes FollowSymLinks MultiViews
  11. Order allow,deny
  12. Allow from all
  13. </Directory>
  14. </VirtualHost>

我缺少什么?

似乎80号港口已经被采取。使用另一个端口或尝试netstat(grep结果只选择值为80的行),ps和kill,看看什么应用程序占用端口并关闭它。

猜你在找的Ubuntu相关文章