It would be smart to bring ‘Redis’ into practice and put ‘Memcache’ down for a while. ‘Redis’ is considered more powerful than ‘Memcache’. ‘Redis’ also supports datatypes such as Transitions, Publish and Subscribe. The redis server will start automatically on system boot. To run the Redis server at startup we need to add it to the chkconfig list.įinally we are ready to start the Redis Server. Give appropriate permission to the init script # description: Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker.Įcho "$PIDFILE exists, process is already running or crashed"Įcho "$PIDFILE does not exist, process is not running"Įcho "Please use start or stop as first argument"
Set daemonize to yes (by default it’s set to ‘No’).
Create a directory to store your Redis config files & data:Īlso we need to create a directory inside “/var/redis” that works as data & a working directory for this Redis instance.Ĭopy the template configuration file you’ll find in the root directory of Redis distribution into /etc/redis/Įdit the configuration file, make sure to perform the following changes: This will return ‘PONG’ if everything is fine.Īdd Redis-server to init script. To check, send a PING command using redis-cli. Starting Redis server by executing the following command without any argument:Ĭheck if Redis is working.
This guide is based on installing Redis 2.8.3:Ĭompiling and Installing Redis from the source: Let’s have a quick look on the installation steps of “ Redis”įirst of all we need to switch to superuser & install dependencies:ĭownload Redis Packages & Unzip. Key values are more complex types like Hashes, Lists, Sets or Sorted Sets. ‘Redis’ is an Open source key-value data store, shared by multiple processes, multiple applications, or multiple Servers.