前端之家收集整理的这篇文章主要介绍了
CentOS6.7下安装CouchBase,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_404_1@本文记录一下在CentOS 6.7上,安装CouchBase的过程,使用的版本是
@H_404_1@Couchbase-server-community-4.5.0-centos6.x86_64.rpm,可以点击下载链接获取。
@H_
404_1@接下来,我们就一起来看一下吧。
下载rpm安装包
@H_
404_1@在CentOS下,
CouchBase Server的安装是采用
rpm的方式来完成的。
[root@dev03 srv]# wget http://packages.couchbase.com/releases/4.5.0/couchbase-server-community-4.5.0-centos6.x86_64.rpm
--2017-01-25 11:16:45-- http://packages.couchbase.com/releases/4.5.0/couchbase-server-community-4.5.0-centos6.x86_64.rpm
Resolving packages.couchbase.com... 54.231.33.218
Connecting to packages.couchbase.com|54.231.33.218|:80... connected.
HTTP request sent,awaiting response... 200 OK
Length: 127189174 (121M) [application/x-redhat-package-manager]
Saving to: “couchbase-server-community-4.5.0-centos6.x86_64.rpm”
100%[====================================================================================================================================================================================================================================>] 127,189,174 9.21M/s in 38s
2017-01-25 11:17:23 (3.20 MB/s) - “couchbase-server-community-4.5.0-centos6.x86_64.rpm” saved [127189174/127189174]
[root@dev03 srv]#
rpm安装
@H_
404_1@使用
rpm --install couchbase-server-<version>.rpm命令来完成rpm安装。
[root@dev03 srv]# rpm --install couchbase-server-community-4.5.0-centos6.x86_64.rpm
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: 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.
Minimum RAM required : 4 GB
System RAM configured : 3.74 GB
Minimum number of processors required : 4 cores
Number of processors on the system : 2 cores
Starting couchbase-server-community
[ OK ]
You have successfully installed Couchbase Server.
Please browse to http://dev03.gzhl.interconnect: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.
[root@dev03 srv]#
配置server
@H_
404_1@经过上面几个步骤之后,可以通过路径
http://<SERVER_IP>:8091/在浏览器打开CouchBase配置server
属性。点击"Setup"按钮 --
@H_
404_1@然后出现配置Server的几个步骤,主要包含五个步骤:
@H_
404_1@可以有实例数据,比如:这边选择的就是
travel-sample。
@H_
404_1@可以选择更新
通知,也可以不选择。
@H_
404_1@最后一步,设置一个
管理员账号。
@H_
404_1@完成上述5个步骤之后,就大功告成,出现如下的
页面。