无法在Mac Sierra中杀死httpd

时间:2018-07-10 01:13:26

标签: macos apache

尝试启动apache时出现此错误

(48)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

所以我想找出实际上阻塞端口并杀死它的端口

我做了

ps aux | grep httpd

我看到了

mylaptop    45813   0.0  0.0  2432804    772 s005  S+    9:10AM   0:00.00 grep httpd
_www             45810   0.0  0.0  2455088    712   ??  S     9:09AM   0:00.00 /usr/sbin/httpd -D FOREGROUND
root             45809   0.0  0.0  2455344   3580   ??  Ss    9:09AM   0:00.11 /usr/sbin/httpd -D FOREGROUND

我做到了

sudo pkill httpd

但是当我再次执行ps aux | grep httpd时,相同的过程再次出现在不同的端口上

mylaptop    45819   0.0  0.0  2432804    772 s005  S+    9:10AM   0:00.00 grep httpd
_www             45817   0.0  0.0  2463280    716   ??  S     9:10AM   0:00.00 /usr/sbin/httpd -D FOREGROUND
root             45816   0.0  0.0  2463536   3588   ??  Ss    9:10AM   0:00.11 /usr/sbin/httpd -D FOREGROUND

这是怎么回事?

0 个答案:

没有答案