Couchbase 是一個開源的、分布式的、面向文檔(document-oriented)的 NoSQL 數據庫,並且內置了 Memcached 服務。本文分享的是自己在 Linux 上成功安裝 Couchbase Server 的實際操作步驟。
Linux 發行版是 CentOS。
1. 下載 Couchbase 安裝包
用 wget 命令進行下載:
wget http://packages.couchbase.com/releases/2.0.0/couchbase-server-enterprise_x86_64_2.0.0.rpm
2. 用 rpm 命令進行安裝 Couchbase
rpm --install couchbase-server-enterprise_x86_64_2.0.0.rpm
命令運行之后出錯:
error: Failed dependencies: libcrypto.so.6()(64bit) is needed by couchbase-server-2.0.0-1976.x86_64 libssl.so.6()(64bit) is needed by couchbase-server-2.0.0-1976.x86_64
3. 安裝 openssl
根據第 2 步中的錯誤,尋找包含 libcrypto.so.6 的安裝包,運行下面的命令:
yum provides */libcrypto.so.6
發現 openssl098e-0.9.8e-17.el6.centos.2.x86_64
安裝該版本的 opensll 包:
yum install openssl098e-0.9.8e-17.el6.centos.2.x86_64
4. 重新安裝 Couchbase
rpm --install couchbase-server-enterprise_x86_64_2.0.0.rpm
安裝成功!顯示下面的信息:
Starting couchbase-server[ OK ]
You have successfully installed Couchbase Server.
Please browse to http://cache: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, 11209, 4369,
8091 and from 21100 to 21299.
By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.
然后通過瀏覽器訪問 http://ip:8091 進行相關配置。
【注】安裝Couchbase的文件夾要進行這樣的授權設置:chown -R couchbase:couchbase .