LoginSignup
2
2

More than 5 years have passed since last update.

Redis 2.6.0-rc5をインストール

Posted at

環境

Mac OSX 10.8
homebrew 0.9.2

目的

  • 2.6から追加されたbitcountbitopを試したい
  • releasenoteによると,UPGRADE URGENCY: We suggest new users to start with 2.6.0, and old users to upgrade after some testing of the application with the new Redis version.とのことなので2.4ユーザーはupgrade準備しておいたほうがよさそう
  • luaコードが実行できる(ドキュメント)
    • どういうケースで使うんだこれ…

インストール

$ brew install redis --devel
$ redis-cli --version
redis-cli 2.5.12 # 2.5.12 == 2.6rc5らしい
$ redis-server /usr/local/etc/redis.conf

設定変更

2.4 -> 2.6 upgradeにあたって何点か設定ファイルを変更.

vm機能が削除

実行時に以下のようなエラーが出る

エラーログ
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 375
>>> 'vm-enabled no'
Bad directive or wrong number of arguments

/usr/local/etc/redis.conf/該当行の少し上にWARNING! Virtual Memory is deprecated in Redis 2.4と書いてあるので素直に消す

hash-max-zipmap-XXX -> hash-max-ziplist-XXX

releasenoteにある通りconfigのキーが変わっているので対応する

2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2