首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >启动web服务器apache2失败

启动web服务器apache2失败
EN

Stack Overflow用户
提问于 2014-11-21 04:02:38
回答 5查看 6.1K关注 0票数 0

我有一个虚拟服务器。直到昨天,一切都很顺利。今天我的主机公司重启了我的服务器,以便在I/O上配置一些东西。

当我试图到达我的地址时,我得到了

代码语言:javascript
复制
Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further    configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

我尝试sudo service apache2 start并得到以下错误消息:

代码语言:javascript
复制
* Starting web server apache2                                                                                                     

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
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

有人知道我如何解决这个问题吗?

EN

回答 5

Stack Overflow用户

发布于 2015-09-15 13:39:02

停止Nginx service nginx stop

重新启动Apache service apache2 restart

票数 1
EN

Stack Overflow用户

发布于 2014-11-21 04:04:44

您有另一台need服务器正在主机上运行(可能是在重启期间作为启动的一部分),您需要首先将其关闭。

您可以运行netstat -tulpn | grep :80,它将告诉您该过程是什么

票数 0
EN

Stack Overflow用户

发布于 2014-11-21 07:42:57

问题是,Nginx (另一个web服务器引擎)正在使用你的80端口,所以apache无法启动,快速修复nginx,然后重启apache。

如果你使用的是基于Ubuntu或Debian的发行版,那么可以使用服务nginx stop服务apache2 restart,如果你使用的是RHEL发行版,那么可以使用服务nginx stop服务httpd restart

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27048458

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档