Redis Server Installation

To install Redis Server standalone (separately from Control Panel box) with the installer:

  1. Install OnApp's YUM repository:

    # rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo.noarch.rpm
  2. Install the onapp-redis package:

    # yum -y install onapp-redis


  3. Run the installer:

    # /onapp/onapp-redis/onapp-redis.sh
 The installer options list:
# /onapp/onapp-redis/onapp-redis.sh -h
Usage: /onapp/onapp-redis/onapp-redis.sh [--passwd[=PASSWD] [--nopasswd] [--port=PORT] [--sock=PATH] [-h|--help]


 --host=HOST

IP address of the interface to bind. Default is 127.0.0.1

 --port=PORT
Redis Server listen port. Defaults are:0 - if local server; 6379 - if remote server.
 --sock=PATH
Path to the Redis Server's socket. Used if local server only. Default is /tmp/redis.sock.
--nopasswd
Connect to the Redis Server without password
--passwd[=PASSWD]
Redis Server password to authenticate. Random password is generated if the option's argument isn't specified. By default, no password is used for local Redis.
-h|--help
Print this info

The following example will install Redis Server, configure access to it from any (including external boxes) and set random password:

# /onapp/onapp-redis/onapp-redis.sh --host=REDIS_HOST --passwd

where, REDIS_HOST - IP address of the interface for Redis to bind. Default is 127.0.0.1.

The ready to use credentials.yml could be used to configure OnApp's Control Panel access.

# cat /onapp/onapp-redis/credentials.yml
---

host: 'REDIS_HOST'
port: 6379
path: '/var/run/redis/redis.sock'
password: 'PASSWORD'

Just run the CP's installer with the following options (REDIS_HOST - remote Redis Server standalone IP address):

# /onapp/onapp-cp-install/onapp-cp-install.sh --redis-host=REDIS_HOST --redis-passwd='PASSWORD'