当我尝试在Ubuntu中启动Apache时,我收到此错误。
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available,shutting down Unable to open logs Action 'start' Failed.
我在ports.conf中有这个
NameVirtualHost *:80 Listen 80
这是我的vhost文件
<VirtualHost *:80> ServerAdmin example@example.com ServerName rails.server.com # ServerAlias DocumentRoot /var/www/sample_app/current/public ErrorLog /var/www/sample_app/error.log RailsEnv production <Directory "/var/www/sample_app/current/public"> Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all </Directory> </VirtualHost>
我缺少什么?
似乎80号港口已经被采取。使用另一个端口或尝试netstat(grep结果只选择值为80的行),ps和kill,看看什么应用程序占用端口并关闭它。
原文链接:https://www.f2er.com/ubuntu/349882.html