Redis redis.ini configuration example for CentOS Linux 6

Get the default configuration file redis.ini for Redis, optimized for CentOS Linux 6. This example configuration ensures optimal compatibility and performance for Redis, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/php.d/redis.ini.

For more configurations and setup guides, visit our related files section to further customize your system.

    ; Enable redis extension module
extension = redis.so

; phpredis can be used to store PHP sessions. 
; To do this, uncomment and configure below

; RPM note : save_handler and save_path are defined
; for mod_php, in /etc/httpd/conf.d/php.conf
; for php-fpm, in /etc/php-fpm.d/*conf

;session.save_handler = redis
;session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2"

    
  

Config Details

Location
/etc/php.d/redis.ini
Operating system
CentOS Linux 6
Length
12 lines
MD5 checksum
a86bad19b3fc5e750b5851fee0f0fe1a

Usage

Download the raw file with wget or curl

Wget

wget -O redis.ini.example https://exampleconfig.com/static/raw/redis/centos6/etc/php.d/redis.ini

cURL

curl https://exampleconfig.com/static/raw/redis/centos6/etc/php.d/redis.ini > redis.ini.example