首页 > Linux服务器管理 > 宝塔面板重启不了apache,出现错误:httpd not running, trying to start

宝塔面板重启不了apache,出现错误:httpd not running, trying to start

有时服务器关机重启出现apache无法启动,在宝塔面板中重载配置也不行,在SSH中用命令:/etc/init.d/httpd restart 重启apache出现错误:

restart apache… httpd not running, trying to start
(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
failed

重启apache失败。

解析方法:

在SSH中运行命令:killall -9 httpd

在重新启动apache:/etc/init.d/httpd restart 或在宝塔面板中重载apache配置

发表回复