本文主要介绍的是linux系统下membase数据库的安装与使用,闲话少说,马上开始!
一、下载membase安装文件
wget [url=http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_64_1.7.2.rpm]http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_64_1.7.2.rpm[/url]
二、安装membase
rpm -ivh membase-server-community_x86_64_1.7.2.rpm
$rpm -ivh membase-server-community_x86_64_1.7.2.rpm
Preparing... ########################################### [100%]
1:membase-server ########################################### [100%]
Starting membase-server[确定]
You have successfully installed Membase Server.
Please browse to [url=http://localhost.localdomain:8091/]http://localhost.localdomain:8091/[/url] to configure your server.
Please refer to [url=http://couchbase.com]http://couchbase.com[/url] for additional resources.
Please note that you have to update your firewall configuration to
allow connections to the following ports: 11211, 11210, 4369, 8091
and from 21100 to 21299.
By using this software you agree to the End User License Agreement.
See /opt/membase/LICENSE.txt.
接下来只需要在windows平台下访问 [url=http://ip:8091]http://ip:8091[/url] 即可完成后续的配置。
[img]http://dl.iteye.com/upload/attachment/0070/6998/1cdd55e4-7084-3632-a17a-72897899c799.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0070/7000/5f743c21-f2d4-394d-b034-e07591ed11d1.jpg[/img]
这里有两种选择模式,一种是创建一个新的集群;另一种是加入一个现有的集群。我们第一次安装的时候先选择创建一个新的集群。至于membase的集群问题,以后会单独讨论。
[img]http://dl.iteye.com/upload/attachment/0070/7002/ba769575-000b-3d97-a4e5-f2403c0c32b3.jpg[/img]
这里的bucket类似mysql里的数据库,我们选择安装membase。mambase与memcache的主要区别就在于数据是否可以落地。
下面的是否允许复制,我们选择默认值就好了。
[img]http://dl.iteye.com/upload/attachment/0070/7004/c8d46d52-ed59-3a2c-95e8-d501c0359f60.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0070/7006/bd32dcf1-a118-3416-ad0c-29b6fda5f593.jpg[/img]
设置管理平台的密码。
[img]http://dl.iteye.com/upload/attachment/0070/7008/d728d487-5b5a-30c5-a639-633576fa8d53.jpg[/img]
至此,membase数据库就安装成功了。启动membase的命令和memcache几乎相同。具体参见我的另一篇博客
memcached -d -m 2048 -u root -l 192.168.1.2 -p 11211 -c 1024 -P /tmp/memcached.pid
一、下载membase安装文件
wget [url=http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_64_1.7.2.rpm]http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_64_1.7.2.rpm[/url]
二、安装membase
rpm -ivh membase-server-community_x86_64_1.7.2.rpm
$rpm -ivh membase-server-community_x86_64_1.7.2.rpm
Preparing... ########################################### [100%]
1:membase-server ########################################### [100%]
Starting membase-server[确定]
You have successfully installed Membase Server.
Please browse to [url=http://localhost.localdomain:8091/]http://localhost.localdomain:8091/[/url] to configure your server.
Please refer to [url=http://couchbase.com]http://couchbase.com[/url] for additional resources.
Please note that you have to update your firewall configuration to
allow connections to the following ports: 11211, 11210, 4369, 8091
and from 21100 to 21299.
By using this software you agree to the End User License Agreement.
See /opt/membase/LICENSE.txt.
接下来只需要在windows平台下访问 [url=http://ip:8091]http://ip:8091[/url] 即可完成后续的配置。
[img]http://dl.iteye.com/upload/attachment/0070/6998/1cdd55e4-7084-3632-a17a-72897899c799.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0070/7000/5f743c21-f2d4-394d-b034-e07591ed11d1.jpg[/img]
这里有两种选择模式,一种是创建一个新的集群;另一种是加入一个现有的集群。我们第一次安装的时候先选择创建一个新的集群。至于membase的集群问题,以后会单独讨论。
[img]http://dl.iteye.com/upload/attachment/0070/7002/ba769575-000b-3d97-a4e5-f2403c0c32b3.jpg[/img]
这里的bucket类似mysql里的数据库,我们选择安装membase。mambase与memcache的主要区别就在于数据是否可以落地。
下面的是否允许复制,我们选择默认值就好了。
[img]http://dl.iteye.com/upload/attachment/0070/7004/c8d46d52-ed59-3a2c-95e8-d501c0359f60.jpg[/img]
[img]http://dl.iteye.com/upload/attachment/0070/7006/bd32dcf1-a118-3416-ad0c-29b6fda5f593.jpg[/img]
设置管理平台的密码。
[img]http://dl.iteye.com/upload/attachment/0070/7008/d728d487-5b5a-30c5-a639-633576fa8d53.jpg[/img]
至此,membase数据库就安装成功了。启动membase的命令和memcache几乎相同。具体参见我的另一篇博客
memcached -d -m 2048 -u root -l 192.168.1.2 -p 11211 -c 1024 -P /tmp/memcached.pid