File: INSTALL

package info (click to toggle)
memcachedb 1.2.0-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 928 kB
  • ctags: 657
  • sloc: ansic: 3,314; sh: 1,123; python: 1,081; perl: 78; makefile: 20
file content (67 lines) | stat: -rw-r--r-- 1,310 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Dependencies
============
Before deploying Memcachedb, make sure that following packages installed:

Berkeley DB 4.7 or later
-------------------------
http://www.oracle.com/database/berkeley-db/db/index.html

How to install BerkekeyDB:

$tar xvzf db-4.7.25.tar.gz
$cd db-4.7.25/
$cd build_unix/
$../dist/configure
$make
$sudo make install


libevent 1.3e or later
-------------------------
http://monkey.org/~provos/libevent/

How to install libevent:

$tar xvzf libevent-1.3e.tar.gz
$cd libevent-1.3e
$./configure
$make
$sudo make install

Load .so file by add two line in /etc/ld.so.conf:

  /usr/local/lib
  /usr/local/BerkeleyDB.4.7/lib

Then, run 'ldconfig'.

Installation
============
$tar xvzf memcachedb-X.Y.Z.tar.gz
$cd memcachedb-X.Y.Z
$./configure --enable-threads
$make
$sudo make install

Getting Started
===============

use "-h" option to get started.

Running Examples:

1. run as a single daemon

  memcachedb -p21201 -d -r -u root -H ./env -N -v

2. run as a replicated group

  start a master (read&write):

    memcachedb -p21201 -d -r -u root -H ./env1 -N -R 127.0.0.1:31201 -M

  then, start a replcas (read-only):

    memcachedb -p21202 -d -r -u root -H ./env2 -N -R 127.0.0.1:31202 -O 127.0.0.1:31201 -S

Have fun :)