linux下的membase数据库安装

本文主要介绍的是linux系统下membase数据库的安装与使用,闲话少说,马上开始!
一、下载membase安装文件
wget http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_64_1.7.2.rpm

二、安装membase
rpm -ivh membase-server-community_x86_64_1.7.2.rpm

[root local]$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 http://localhost.localdomain:8091/ to configure your server.
Please refer to http://couchbase.com 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平台下访问 http://ip:8091 即可完成后续的配置。

linux下的membase数据库安装_第1张图片

linux下的membase数据库安装_第2张图片
这里有两种选择模式,一种是创建一个新的集群;另一种是加入一个现有的集群。我们第一次安装的时候先选择创建一个新的集群。至于membase的集群问题,以后会单独讨论。
linux下的membase数据库安装_第3张图片
这里的bucket类似mysql里的数据库,我们选择安装membase。mambase与memcache的主要区别就在于数据是否可以落地。
下面的是否允许复制,我们选择默认值就好了。
linux下的membase数据库安装_第4张图片

linux下的membase数据库安装_第5张图片
设置管理平台的密码。
linux下的membase数据库安装_第6张图片
至此,membase数据库就安装成功了。启动membase的命令和memcache几乎相同。具体参见我的另一篇博客
memcached -d -m 2048  -u root -l 192.168.1.2 -p 11211 -c 1024 -P /tmp/memcached.pid

你可能感兴趣的:(linux)