ubuntu – 重启apache时没有运行httpd(没有pid文件)

前端之家收集整理的这篇文章主要介绍了ubuntu – 重启apache时没有运行httpd(没有pid文件)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在研究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 {直接执行}来检查发生了什么.

原文链接:https://www.f2er.com/ubuntu/347806.html

猜你在找的Ubuntu相关文章