Skip to content

Instantly share code, notes, and snippets.

@shinofara
Created June 4, 2013 09:35
Show Gist options
  • Save shinofara/5704787 to your computer and use it in GitHub Desktop.
Save shinofara/5704787 to your computer and use it in GitHub Desktop.
【メモ】redisをphpで使うまで ref: http://qiita.com/items/9476cee35cfac1b7ee50
$ sudo su
$ cd /usr/local/src
$ wget http://redis.googlecode.com/files/redis-2.6.12.tar.gz
$ tar xzf redis-2.6.12.tar.gz
$ cd redis-2.6.12
$ make;make install
$ ln -s /usr/local/src/redis-2.6.12 /usr/local/redis
$ sudo mkdir -pv /var/data/redis
$ sudo chown -R root:wheel /var/data/redis
$ sudo yum install gcc
$ make distclean
$ make;make install
$ sudo su
$ cd /usr/local/src
$ git clone git://github.com/nicolasff/phpredis.git
$ cd phpredis/
$ phpize
$ ./configure
$ make;make install
echo "extension=igbinary.so" > /etc/php.d/igbinary.ini
echo "extension=redis.so" > /etc/php.d/redis.ini
php -m | grep redis
-dir ./
+dir /var/data/redis/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment