Install the couchbase Server

Source: Internet
Author: User
Tags couchbase administrator password

 

1. Download the installation package

First, go to the official website to download the installation package: http://www.couchbase.com/

 

Download address: http://www.couchbase.com/download

Select a Windows version. If you select a 32-bit version, the file is: couchbase-server-enterprise_2.5.0_x86.setup.exe, And the 64-bit version of the Installation File is: couchbase-server-enterprise_2.5.0_x86_64.setup.exe, it seems that the 32-bit version of the content.

Ii. Installation Steps

Installation steps:

1. Enter the welcome installation interface.

 

2. Select the installation location

 

3. Confirm the installation parameters. The minimum memory size is 4 GB, and the minimum processor size is 4-core.

 

4. Installation Process

 

5. Complete the installation.

 

3. Configuration 1. After the installation is complete, the Web management interface is directly configured. In addition, on the desktop, the installer generates a shortcut by default.

 

2. Set disk storage, server host, and cluster configuration

 

3. Sample Data

 

4. The default bucket configuration type, memory used by each node. Pay attention to the following flush. After selection, flush is supported; otherwise, it is not supported.

If it is not selected, flush on the. NET client will get an exception. The remote server returns the error 400.

 

What should I do if I forget it? Continue reading ......

 

5. Do you want to receive the upgrade prompt.

 

6. Configure the Administrator Password

 

4. Monitoring page

After the configuration is complete, go to the monitoring page. Then, you can view the cache usage on the monitoring page.

5. Use the command line to allow flush

The installation program is convenient, but you will find that once the installation is complete, the flush option is not reconfigured on the management interface. If the flush option is not enabled during installation, however, what should I do if I want to enable it after the installation is complete?

Couchbase provides a powerful command line interface that supports couchbae-CLI to support command line management. This command is located in the \ couchbase \ Server \ bin folder in the couchbase installation directory.

To enable flush, we modify the configuration parameters of a bucket. We need to use the bucket-edit command and use -- bucket to specify the bucket for configuration modification. -- enable-flush = 1 indicates that the configuration is enabled, = 0: the display is disabled. The remaining parameters are the Administrator's account and password.

>couchbase-cli bucket-edit --bucket=default --enable-flush=1 -c 127.0.0.1  -u Administrator -p 123456

If it succeeds, the server returns a description

SUCCESS: bucket-edit

If the configuration is successful, you can call flush on the client. However, if the server is busy and cannot respond for a long time, an exception will be thrown, but it is not the 400 that has not enabled flush, but 503.

 

In addition, the generated configuration file is located in the D: \ couchbase \ Server \ var \ Lib \ couchbase \ config folder, and the file name is config. dat. This is a binary file and cannot be edited directly. It must be generated using a tool.

If you use the command line flush, you can use the bucket-flush command. Use -- bucket to specify the target.

D:\Couchbase\Server\bin>couchbase-cli bucket-flush --bucket=default -c 127.0.0.1:8091 --force -u Administrator -p 123456

The returned result is as follows.

Database data will be purged from disk ...SUCCESS: bucket-flush

 

6. the. NET client refreshes the cache.

The original flushall method has expired and needs to be managed using the couchbaecluster class in the couchbase. Management namespace.

Couchbase.Management.CouchbaseCluster cluster    = new Couchbase.Management.CouchbaseCluster("couchbase");cluster.FlushBucket("default");

 

 

Good luck!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.