以下のコマンドでapacheを再起動する。
/etc/init.d/httpd restart
以下のようなメッセージが表示されて再起動できなくなる。
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
以下のコマンドでポートを使用しているプロセスを調べる。
/usr/sbin/lsof -i | grep http
プロセス番号が表示されるのでkillする。
以下のコマンドでapacheを再起動する。
/etc/init.d/httpd restart
以下のようなメッセージが表示されて再起動できなくなる。
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
以下のコマンドでポートを使用しているプロセスを調べる。
/usr/sbin/lsof -i | grep http
プロセス番号が表示されるのでkillする。