网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

centos7.4部署couchbase集群-创新互联

      couchbase是一个较新的、发展迅速的nosql数据库技术。2014年,viber宣布使用couchbase替换mongodb,以适应10亿级的用户量,目前,couchbase已大量运用于生产环境,国内使用的公司主要有新浪,腾讯等。由于中文资料较少,阅读了官方文档中的部分介绍后,将资料翻译和汇总如下。

      couchbase是CouchDB和MemBase的合并。而memBase是基于Memcached的。因此couchbase联合了couchbase的简单可靠和memcached的高性能,以及membase的可扩展性。

十多年的广德网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。营销型网站的优势是能够根据用户设备显示端的尺寸不同,自动调整广德建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。创新互联从事“广德网站设计”,“广德网站推广”以来,每个客户项目都认真落实执行。

      

      couchbase可用于单机环境,也可以和其他服务器一起提供分布式的数据存储。

centos 7.4部署couchbase集群

一、安装couchbase(node1、node2、node3)

1、关闭防火墙和selinux

[root@localhost ~]# systemctl stop firewalld [root@localhost ~]# systemctl disable firewalld Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service. [root@localhost ~]# vi /etc/sysconfig/selinux # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: #     enforcing - SELinux security policy is enforced. #     permissive - SELinux prints warnings instead of enforcing. #     disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of three two values: #     targeted - Targeted processes are protected, #     minimum - Modification of targeted policy. Only selected processes are protected. #     mls - Multi Level Security protection. SELINUXTYPE=targeted [root@localhost ~]# setenforce 0

2、下载couchbase

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

couchbase官网地址:https://×××w.couchbase.com/downloads

3、确认依赖包是否安装,如果没安装yum安装下。

[root@localhost ~]# rpm -qa | grep "pkgconfig" pkgconfig-0.27.1-4.el7.x86_64 [root@localhost ~]# rpm -qa | grep "openssl" openssl-libs-1.0.1e-42.el7.9.x86_64 openssl-1.0.1e-42.el7.9.x86_64

4、安装couchbase

[root@localhost ~]# rpm -ivh couchbase-server-enterprise-4.6.2-centos7.x86_64.rpm 准备中...                          ################################# [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 : 0.95 GB Minimum number of processors required : 4 cores Number of processors on the system    : 1 cores 正在升级/安装...    1:couchbase-server-4.6.2-3905      ################################# [100%] Created symlink from /etc/systemd/system/multi-user.target.wants/couchbase-server.service to /usr/lib/systemd/system/couchbase-server.service. You have successfully installed Couchbase 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: 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.

5、服务状态与开机自启

[root@test1 ~]# systemctl status couchbase-server [root@test1 ~]# systemctl enable couchbase-server

二、couchbase集群配置(node1)

集群初始化有以下方式,这里我们以web控制台方式为例:

* Couchbase的web控制台 (Couchbase Web Console)

* Couchbase的命令行 (Couchbase Command Line Interface)

* Couchbase的API接口(Couchbase REST API)

1、浏览器输入http://192.168.146.126:8091/访问

centos 7.4部署couchbase集群

2、选择“Strat a new cluster”选项,这里主要是设置RAM Quota、Database path和Indexes path

在配置服务器界面,你有如下选项:

* 创建新的集群(Start a new cluster)

* 加入已有集群(Join a cluster now)

* 配置存储(Configure Disk Storage)

* 配置服务器的主机名(Configure Server Hostname)

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

3、按照默认设置

centos 7.4部署couchbase集群

4、缺省的bucket不建议分配过大,勾选Flush下的Enable复选框

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

5、勾选同意

centos 7.4部署couchbase集群

6、设置后台管理Administrator密码

centos 7.4部署couchbase集群

7、登陆后首页

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

8、创建新的Bucket,RAM建议默认,默认会将除了default的所有内存分配给这个Bucket。勾选Flush下的Enable复选框

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

9、点击刚才创建的bucket进行刷新,如下图

centos 7.4部署couchbase集群

10、新增集群节点,并同步

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

centos 7.4部署couchbase集群

11、按照上一步的方法添加第三台,效果如下:

centos 7.4部署couchbase集群

其它链接:

http://rdc.hundsun.com/portal/article/736.html

http://rdc.hundsun.com/portal/article/761.html

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网站标题:centos7.4部署couchbase集群-创新互联
文章来源:http://bjjierui.cn/article/dsjceh.html

其他资讯