Apache再起動時に出るメッセージを消す
Ubuntu でapache2 を再起動しようとすると出るメッセージ。
$ sudo /etc/init.d/apache2 restart * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ]
一応再起動はできてるみたいだけど、気になる場合に。
/etc/hosts の 127.0.0.1 の行を以下のようにlocalhost.localdomain を先頭に持ってくることで対処できる。
$ sudo vi /etc/hosts 127.0.0.1 localhost.localdomain localhost haruhi
自分の環境は 127.0.1.1 の方だった。なんでなんだろう