CentOS6.7下安装CouchBase

前端之家收集整理的这篇文章主要介绍了CentOS6.7下安装CouchBase前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文记录一下在CentOS 6.7上,安装CouchBase的过程,使用的版本是

Couchbase-server-community-4.5.0-centos6.x86_64.rpm,可以点击下载链接获取

接下来,我们就一起来看一下吧。

下载rpm安装包

在CentOS下,CouchBase Server的安装是采用rpm的方式来完成的。

  1. [root@dev03 srv]# wget http://packages.couchbase.com/releases/4.5.0/couchbase-server-community-4.5.0-centos6.x86_64.rpm
  2. --2017-01-25 11:16:45-- http://packages.couchbase.com/releases/4.5.0/couchbase-server-community-4.5.0-centos6.x86_64.rpm
  3. Resolving packages.couchbase.com... 54.231.33.218
  4. Connecting to packages.couchbase.com|54.231.33.218|:80... connected.
  5. HTTP request sent,awaiting response... 200 OK
  6. Length: 127189174 (121M) [application/x-redhat-package-manager]
  7. Saving to: couchbase-server-community-4.5.0-centos6.x86_64.rpm
  8.  
  9. 100%[====================================================================================================================================================================================================================================>] 127,189,174 9.21M/s in 38s
  10.  
  11. 2017-01-25 11:17:23 (3.20 MB/s) - couchbase-server-community-4.5.0-centos6.x86_64.rpm saved [127189174/127189174]
  12.  
  13. [root@dev03 srv]#

rpm安装

使用rpm --install couchbase-server-<version>.rpm命令来完成rpm安装。

  1. [root@dev03 srv]# rpm --install couchbase-server-community-4.5.0-centos6.x86_64.rpm
  2. Warning: Transparent hugepages looks to be active and should not be.
  3. Please look at http://bit.ly/1ZAcLjD as for how to PERMANENTLY alter this setting.
  4. Warning: Transparent hugepages looks to be active and should not be.
  5. Please look at http://bit.ly/1ZAcLjD as for how to PERMANENTLY alter this setting.
  6. Minimum RAM required : 4 GB
  7. System RAM configured : 3.74 GB
  8.  
  9. Minimum number of processors required : 4 cores
  10. Number of processors on the system : 2 cores
  11.  
  12. Starting couchbase-server-community
  13. [ OK ]
  14.  
  15. You have successfully installed Couchbase Server.
  16. Please browse to http://dev03.gzhl.interconnect:8091/ to configure your server.
  17. Please refer to http://couchbase.com for additional resources.
  18.  
  19. Please note that you have to update your firewall configuration to
  20. allow connections to the following ports:
  21. 4369,8091 to 8094,9100 to 9105,9998,9999,11209 to 11211,11214,11215,18091 to 18093,and from 21100 to 21299.
  22.  
  23. By using this software you agree to the End User License Agreement.
  24. See /opt/couchbase/LICENSE.txt.
  25.  
  26. [root@dev03 srv]#

配置server

经过上面几个步骤之后,可以通过路径http://<SERVER_IP>:8091/在浏览器打开CouchBase配置server属性。点击"Setup"按钮 --

然后出现配置Server的几个步骤,主要包含五个步骤:

  • Step 1
  • Step 2

可以有实例数据,比如:这边选择的就是travel-sample

  • Step 3
  • Step 4

可以选择更新通知,也可以不选择。

  • Step 5

最后一步,设置一个管理员账号。

完成上述5个步骤之后,就大功告成,出现如下的页面

猜你在找的CentOS相关文章