hasen's tech life

Twitter: @hasen

Starting httpd: (98)Address already in useというエラーが出たので対応した.

# Starting httpd: (98)Address already in useというエラーが出たので対応した.

$ sudo service httpd restart
> Starting httpd: (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

$ sudo netstat -peanut | grep ":80"
> tcp  0 0 :::80  :::* LISTEN 0  11792 3661/httpd

$ sudo kill -9 3661

$ sudo service httpd restart
> Stopping httpd:                      [FAILED]
> Starting httpd:                      [ OK ]