报错apachectl restart

httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address [::]:80
(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

解决办法1.用命令的绝对路径。

/usr/local/apache2/bin/apachectl restart

解决办法

killall -9 httpd

在重新启动

apachectl restart
原文地址:https://www.cnblogs.com/wangshaojun/p/5023207.html