我正在研究ubuntu.尝试重新启动apache时收到错误消息.
root@XXX:/etc/init.d# sudo /etc/init.d/apache2 restart * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name,using xxx.xxx.xx.xxx for ServerName httpd (no pid file) not running apache2: Could not reliably determine the server's fully qualified domain name,using xxx.xxx.xx.xxx for ServerName (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
尝试使用netstat -pant时,我收到以下消息
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 32748 9950/httpd tcp 429 0 xxx.xxx.xx.xxx:80 xxx.xxx.xx.xxx:xxxxx CLOSE_WAIT 0 0
使用lsof -i:80 {检查参数是否正确).它列出了正在侦听端口80的所有应用程序.
还尝试运行apache2 {直接执行}来检查发生了什么.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。