CentOS7.0安装配置CouchBase

简介

Couchbase 是一个开源的、分布式的、面向文档(document-oriented)的 NoSQL 数据库,并且内置了 Memcached 服务。本文分享的是自己在 Linux 上成功安装 Couchbase Server 的实际操作步骤。

1.下载Couchbase

1.1.登录Couchbase官网, 如下图所示:

couchbase_org.png

1.2.直接下载或者通过wget

[root@apollo dtadmin~]# wget https://packages.couchbase.com/releases/4.6.2/couchbase-server-enterprise-4.6.2-centos7.x86_64.rpm

2.安装包依赖检查

在执行安装之前,确保相应的依赖包已安装。本文通过pkgconfig命令来检查Couchbase Server RPM的依赖。

#安装pkgconfig
[root@apollo ~]# yum -y install pkgconfig
#查看OpenSSL是否安装
[root@apollo ~]# rpm -qa | grep "openssl"
#如果没有安装,用下面命令安装
[root@apollo ~]# yum -y install openssl

3.使用rpm包安装couchbase

[root@apollo dtadmin]# rpm -ivh couchbase-server-enterprise-4.6.2-centos7.x86_64.rpm 
Preparing...                          ################################# [100%]
Warning: Transparent hugepages looks to be active and should not be.
Please look at http://bit.ly/1ZAcLjD as for how to PERMANENTLY alter this setting.
Warning: Swappiness is not set to 0.
Please look at http://bit.ly/1k2CtNn as for how to PERMANENTLY alter this setting.
Minimum RAM required  : 4 GB
System RAM configured : 3.70 GB

Minimum number of processors required : 4 cores
Number of processors on the system    : 1 cores

Updating / installing...
   1:couchbase-server-4.6.2-3905      ################################# [100%]
ln -s '/usr/lib/systemd/system/couchbase-server.service' '/etc/systemd/system/multi-user.target.wants/couchbase-server.service'

You have successfully installed Couchbase Server.
Please browse to http://apollo.dt.com: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:
4369, 8091 to 8094, 9100 to 9105, 9998, 9999, 11209 to 11211,
11214, 11215, 18091 to 18093, and from 21100 to 21299.

By using this software you agree to the End User License Agreement.
See /opt/couchbase/LICENSE.txt.

4.安装完成后,通过http://ip:8091端口访问

安装完成后,Couchbase服务会自动启动,安装完成后,会有以下信息显示

    Minimum RAM required : 4 GB 
    System RAM configured : 8174464 kilobytes
    Minimum number of processors required :  4 cores 
    Number of processors on the system : 4 cores


    Starting couchbase-server[ OK ]

    You have successfully installed Couchbase Server. 
    Browse to http://host_name:8091/ to configure your server. 
    Refer to http://couchbase.com for additional resources.

    Update your firewall configuration 
    to allow connections to the following ports: 

    11211, 11210, 11209, 4369, 8091, 8092 and from 21100 to 21299.


    By using this software you agree to the End User License Agreement. 
    See /opt/couchbase/LICENSE.txt.

4.1. 通过http://ip:8091端口访问

couchbase_homepage.png

至此,单机版的couchbase安装成功,后文将持续讲解couchbase的集群与使用。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值