Created
June 4, 2013 09:35
-
-
Save shinofara/5704787 to your computer and use it in GitHub Desktop.
【メモ】redisをphpで使うまで ref: http://qiita.com/items/9476cee35cfac1b7ee50
This file contains hidden or 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
$ 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 |
This file contains hidden or 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
$ sudo yum install gcc | |
$ make distclean | |
$ make;make install |
This file contains hidden or 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
$ sudo su | |
$ cd /usr/local/src | |
$ git clone git://github.com/nicolasff/phpredis.git | |
$ cd phpredis/ | |
$ phpize | |
$ ./configure | |
$ make;make install |
This file contains hidden or 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
echo "extension=igbinary.so" > /etc/php.d/igbinary.ini |
This file contains hidden or 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
echo "extension=redis.so" > /etc/php.d/redis.ini |
This file contains hidden or 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
php -m | grep redis |
This file contains hidden or 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
-dir ./ | |
+dir /var/data/redis/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment