The Redis server service is already running on the default port on all Mojo Host Manager based servers. To move your Magento cache into Redis, you only need to edit the local.xml file for your Magento install. This is located in app/etc. for any Magento 1.X install.
Enabling Redis Cache
Open your local.xml file and add this block within the <global> section.
<!-- This is a child node of config/global -->
<server>127.0.0.1</server> <!-- or absolute path to unix socket -->
<persistent></persistent> <!-- Specify unique string to enable persistent connections. E.g.: sess-db0; bugs with phpredis and php-fpm are known: https://github.com/nicolasff/phpredis/issues/70 -->
<database>0</database> <!-- Redis database number; protection against accidental data loss is improved by not sharing databases -->
<password></password> <!-- Specify if your Redis server requires authentication -->
<force_standalone>0</force_standalone> <!-- 0 for phpredis, 1 for standalone PHP -->
<connect_retries>1</connect_retries> <!-- Reduces errors due to random connection failures; a value of 1 will not retry after the first failure -->
<read_timeout>10</read_timeout> <!-- Set read timeout duration; phpredis does not currently support setting read timeouts -->
<automatic_cleaning_factor>0</automatic_cleaning_factor> <!-- Disabled by default -->
<compress_data>1</compress_data> <!-- 0-9 for compression level, recommended: 0 or 1 -->
<compress_tags>1</compress_tags> <!-- 0-9 for compression level, recommended: 0 or 1 -->
<compress_threshold>20480</compress_threshold> <!-- Strings below this size will not be compressed -->
<compression_lib>gzip</compression_lib> <!-- Supports gzip, lzf, lz4 (as l4z) and snappy -->
<use_lua>0</use_lua> <!-- Set to 1 if Lua scripts should be used for some operations -->
The above snippet will work for single sites without issue. But if you are hosting multiple sites on the same server and want to use Redis on all of them, you must change the <database> value to some other number for each site. Each Magento site should have its own unique database number between 0 and 15. If you do not do this, you may see strange behavior as the cached data conflicts across the sites.
The default port of 6379 is used at MageMojo