这里会显示出您选择的修订版和当前版本之间的差别。
en:razor:enable-redis-in-cobub-razor [2015/09/15 15:25] cobub v0.7.2 |
en:razor:enable-redis-in-cobub-razor [2017/07/14 11:18] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ~~Title:Cobub Razor Enable Redis in Cobub Razor - Mobile Apps Marketing Platform of Open Source - Mobile Analytics & Mobile Push Notification Solutions - Cobub Mobile Developer Center~~ | ||
- | {{description>Cobub Razor is an Open Source Mobile Analytics. Download, extract and compile latest stable Redis with:.}} | ||
- | {{keywords>Cobub Razor,open source mobile analytics,mobile analytics,mobile app analytics, redis}} | ||
- | ====== Enable Redis in Cobub Razor ====== | ||
- | ===== Installation ===== | ||
- | Download, extract and compile latest stable Redis with: | ||
- | <code>$ wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz | ||
- | |||
- | $ tar xzf redis-2.4.14.tar.gz | ||
- | |||
- | $ cd redis-2.4.14 | ||
- | |||
- | $ make</code> | ||
- | The binaries that are now compiled are available in the src directory. Run Redis with: | ||
- | <code>$ src/redis-server</code> | ||
- | You can interact with Redis using the built-in client: | ||
- | <code>$ src/redis-cli | ||
- | |||
- | redis> set foo bar | ||
- | |||
- | OK | ||
- | |||
- | redis> get foo | ||
- | |||
- | "bar"</code> | ||
- | More Info : http://redis.io/ | ||
- | ===== Enable Redis in Cobub Razor ===== | ||
- | 1. Redis server configuration | ||
- | |||
- | Configure Redis server info under /application/config/redis.php | ||
- | {{:en:razor:20150319-074355.png}} | ||
- | |||
- | 2. Enable Redis in Cobub Razor | ||
- | |||
- | Set redis variable to 1 to enable Redis in Razor under application/config/config.php | ||
- | {{:en:razor:20150319-074409.png}} | ||
- | |||
- | 3. Set Redis Que Processing Interval | ||
- | |||
- | Razor use Redis to queue the data posted by client. You can set process queue interval under /application/config/config.php | ||
- | {{:en:razor:20150319-074423.png}} | ||
- | ===== Basic Architecture ===== | ||
- | {{:en:razor:20150319-074549.png}} |