Skip to content

Instantly share code, notes, and snippets.

@mannerisman
Forked from pbolduc/1. Install Redis
Created September 28, 2017 04:39
Show Gist options
  • Save mannerisman/f1009c6bd4c035e04e47d04bc03a4f05 to your computer and use it in GitHub Desktop.
Save mannerisman/f1009c6bd4c035e04e47d04bc03a4f05 to your computer and use it in GitHub Desktop.
Install redis on CentOS 7
$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
$ tar xzvf redis-2.8.3.tar.gz
$ cd redis-2.8.3
$ make
$ make install
$ 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
$ 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 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