redisインストール後のトラブル

会社の事務所が計画停電になったので、事務所サーバを再起動。

で、OS起動時に以下のメッセージが。

# Server started. Redis version 2.6.9
# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
* The server is now ready to accept connections on port 6379

sshdはまだ立ち上がってないようなので、telnet

$ telnet server 6379
$ telnet > shutdown

とすると、起動中画面のロガーにsaveしてからシャットダウンしろとのこと。

$ telnet > save

しようとすると、権限がないとのこと。
で、らちがあかないので、single user mode で起動。rootでログイン。

# chkconfig redis off
# reboot

でさくっと起動。

いやあ、あせりました。