-
-
Save lukrizal/069371be4cc8a161cc5f 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
// --- Compiling --- | |
$ wget http://download.redis.io/releases/redis-2.8.19.tar.gz | |
$ vi | |
$ cd redis-2.8.3 | |
$ make | |
$ make install | |
// --- or using yum --- | |
$ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
$ yum --enablerepo=remi,remi-test install redis |
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
$ sudo nano /etc/sysctl.conf | |
vm.overcommit_memory=1 | |
$ sysctl vm.overcommit_memory=1 | |
$ sysctl -w fs.file-max=100000 |
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
$ chkconfig --add redis | |
$ chkconfig --level 345 redis on | |
$ service redis start/stop/restart |
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
// Install php-redis extension | |
$ yum --enablerepo=remi,remi-test install php-redis | |
// If it does not work, try the following steps: | |
$ wget https://github.com/nicolasff/phpredis/zipball/master -O phpredis.zip | |
$ unzip phpredis.zip | |
$ cd nicolasff-phpredis-* | |
$ phpize | |
$ ./configure | |
$ make | |
$ make install | |
Installing shared extensions: /usr/lib64/php/modules/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment