In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Couchbase is a relatively new and rapidly developing nosql database technology. In 2014, viber announced that it would replace mongodb with couchbase to adapt to the number of 1 billion users. At present, couchbase has been widely used in production environment, mainly used by domestic companies such as Sina, Tencent and so on. Due to the lack of Chinese materials, after reading some of the introductions in the official documents, the materials will be translated and summarized as follows.
Couchbase is a merger of CouchDB and MemBase. MemBase is based on Memcached. So couchbase combines the simplicity and reliability of couchbase with the high performance of memcached, as well as the scalability of membase.
Couchbase can be used in a stand-alone environment, or it can provide distributed data storage with other servers.
Install couchbase (node1, node2, node3)
1. Turn off the firewall and selinux
[root@localhost ~] # systemctl stop firewalld [root@localhost ~] # systemctl disable firewalldRemoved 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. Download couchbase
[root@localhost ~] # wget https://packages.couchbase.com/releases/4.6.2/couchbase-server-enterprise-4.6.2-centos7.x86_64.rpm
Couchbase official website address: https:// × × w.couchbase.com/downloads
3. Confirm whether the dependency package is installed, if yum is not installed.
[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_64openssl-1.0.1e-42.el7.9.x86_64
4. Install couchbase
[root@localhost ~] # 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 GBSystem RAM configured: .95 GBMinimum number of processors required: 4 coresNumber of processors on the system: 1 cores is being upgraded / installed... 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 toallow 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. Service status and self-booting
[root@test1 ~] # systemctl status couchbase-server [root@test1 ~] # systemctl enable couchbase-server
II. Couchbase cluster configuration (node1)
Cluster initialization can be done in the following ways. Here we take the web console as an example:
* web console of Couchbase (Couchbase Web Console)
* Command line of Couchbase (Couchbase Command Line Interface)
* API API (Couchbase REST API) of Couchbase
1. Enter http://192.168.146.126:8091/ in the browser to access
2. Select the "Strat a new cluster" option, which mainly sets RAM Quota, Database path and Indexes path.
In the configuration server interface, you have the following options:
* create a new cluster (Start a new cluster)
* join an existing cluster (Join a cluster now)
* configure storage (Configure Disk Storage)
* configure the hostname of the server (Configure Server Hostname)
3. Follow the default settings
4. It is not recommended to allocate too much bucket by default. Check the Enable check box under Flush.
5. Check and agree
6. Set the Administrator password for backend management
7. Home page after landing
8. It is recommended to create a new Bucket,RAM. By default, all memory except default will be allocated to this Bucket by default. Check the Enable check box under Flush
9. Click the bucket you just created to refresh it, as shown below
10. Add new cluster nodes and synchronize them
11. Add the third one according to the method in the previous step, and the effect is as follows:
Other links:
Http://rdc.hundsun.com/portal/article/736.html
Http://rdc.hundsun.com/portal/article/761.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.