Skip to content

Instantly share code, notes, and snippets.

Last active September 4, 2023 09:29
Show Gist options
  • Save nghuuphuoc/7801123 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/7801123 to your computer and use it in GitHub Desktop.
Install Redis on Centos 6
// --- Compiling ---
$ wget
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
// --- or using yum ---
$ rpm -Uvh
$ rpm -Uvh
$ yum --enablerepo=remi,remi-test install redis
$ sudo nano /etc/sysctl.conf
$ sysctl vm.overcommit_memory=1
$ sysctl -w fs.file-max=100000
$ chkconfig --add redis
$ chkconfig --level 345 redis on
$ service redis start/stop/restart
// Install php-redis extension
$ yum --enablerepo=remi,remi-test install php-redis
// If it does not work, try the following steps:
$ wget -O
$ unzip
$ cd nicolasff-phpredis-*
$ phpize
$ ./configure
$ make
$ make install
Installing shared extensions: /usr/lib64/php/modules/
Copy link

thanks I have been able to install but How can I upgrade version redis?

Copy link

AliN11 commented Apr 13, 2017

I couldn't complete setup.

when i run this command:
$ chkconfig --add redis

I get this error:
error reading information on service redis: No such file or directory

Copy link

ghost commented Apr 18, 2017

Oh man. 46 forks. Which one to choose? Of the forks. 15 modified. 1 with 9 stars and 19 updates, with a tutorial for CentOS 7 linked by a user who was active on GitHub in the last day. Followed those instructions, which had a number of manual steps automated with comment from @vortexau on using the install utility script shipped with the release I built (redis-3.0.4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment