Last active
August 9, 2016 03:13
-
-
Save kenzo0107/2d2ba487d1fad3c3a774 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# brew search で"-redis"関連のモジュール検索 | |
brew search -redis | |
php53-redis php54-redis php55-redis php56-redi | |
# php5.3系の為、以下php53-redisをインストール | |
# php5.n => php5n-redisをインストールしてください。 | |
brew install php53-redis | |
............................ | |
ログ出力 | |
............................ | |
# Download成功すると以下にredis.soがインストールされている。 | |
# 「2.2.5」部分は変更される可能性もあるのでパス確認してください。 | |
/usr/local/Cellar/php53-redis/2.2.5/redis.so | |
# インストール完了後、php.iniの最後行に以下追記 | |
[redis] | |
extension="/usr/local/Cellar/php53-redis/2.2.5/redis.so" | |
# 上記設定後、Apache再起動して設定反映されていることを確認する | |
php | grep redis | |
redis と表示されれば成功。 | |
# 失敗しているときはパスの指定が誤っている場合があるので再度確認し修正してください。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment