not good but great

プログラミング、アート、映画・本の感想について書きます。

「Address already in use: AH00072: make_sock: could not bind to address」が出てapacheが起動できない時の対処法

「sudo service apache2 restart」したら下記のエラーが出ました。

* Restarting web server apache2                                                                                                                             (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
Action 'start' failed.
The Apache error log may have more information.
                                                                                                                                                      [fail]
 * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems

nginxが立ち上がっていたのでstopさせるとapache2を起動できた。