我有一个虚拟服务器。直到昨天,一切都很顺利。今天我的主机公司重启了我的服务器,以便在I/O上配置一些东西。
当我试图到达我的地址时,我得到了
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并得到以下错误消息:
* 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有人知道我如何解决这个问题吗?
发布于 2015-09-15 13:39:02
停止Nginx service nginx stop
重新启动Apache service apache2 restart
发布于 2014-11-21 04:04:44
您有另一台need服务器正在主机上运行(可能是在重启期间作为启动的一部分),您需要首先将其关闭。
您可以运行netstat -tulpn | grep :80,它将告诉您该过程是什么
发布于 2014-11-21 07:42:57
问题是,Nginx (另一个web服务器引擎)正在使用你的80端口,所以apache无法启动,快速修复nginx,然后重启apache。
如果你使用的是基于Ubuntu或Debian的发行版,那么可以使用服务nginx stop和服务apache2 restart,如果你使用的是RHEL发行版,那么可以使用服务nginx stop和服务httpd restart
https://stackoverflow.com/questions/27048458
复制相似问题