1. Modify configuration
#> vi /etc/redis.conf

bind 127.0.0.1 -> bind 0.0.0.0 or bind [allowed host]

2. Restart server
# CentOS 6 #> service redis restart # CentOS 7 #> systemctl restart redis
1 | rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
|
1 | rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
|
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
#> yum -y --enablerepo=epel,remi install redis

# CentOS 6 #> service redis restart # CentOS 7 #> systemctl restart redis
# CentOS 6 #> chkconfig redis on # CentOS 7 #> systemctl enable redis.service
| Property Name | Description | Reqired | Choices | Sample Value | |||||
| debug | The debug property will cause the driver to print out debug information to the console during its operation. | false |
| false | |||||
| user | User name for connection. | true | bizteco | ||||||
| password | Password for connection. | false | btc7btc | ||||||
| cursor | For scrollable ResultSets, should the cursor be on the client or server. | false |
| client | |||||
| encoding | Character encoding used. | false |
| utf-8 | |||||
| dbname | Database name to use. | false | admin | ||||||
| validation | Schema validation performed. Strict validation ensures all identifiers are in schema. Flex validation will perform best effort validation against a schema (if present) but attempt to execute query in all cases. None will never generate or use any schema information. | false |
| flex | |||||
| schema | Location of schema. Either a file URI or location in MongoDB. | false | mongo:192.168.0.13:8989/db/_schema | ||||||
| rebuildschema | If true, rebuilds schema for connection. If false, uses existing cached schema if available. Uses location provided in schema property. | false |
| false | |||||
| readpref | Specifies a MongoDB ReadPreference such as primary, secondary, or nearest. | false |
| primary | |||||
| readparam | Used to pass parameters to configure ReadPreference in the form of JSON strings which are converted to DBObjects. | false |
| ||||||
| writeconcern | Write concern controls how writing and updated are handled. Settings such as unacknowledged or acknowledged are possible. | false |
| ack | |||||
| writeparam | Used to configure a write concern based on a tag name. Calls WriteConcern(String w) constructor with value as w parameter. | false | |||||||
| ssl | Use SSL connections to Mongo instance. | false |
| false | |||||
| samplesize | When building schemas fraction of collection to sample in the range of 0 to 1. Default is 0.001. | false |
| ||||||
| log | File location of log file to store debugging information if debug is true. | false |