Installation of Leveldb-linux__linux

Source: Internet
Author: User
Tags git clone

Leveldb is a fast Key-value (string,string) repository, written by Google.

The basic operation is: put (key,value), get (key), Delete (key).
Users can create a temporary snapshot to get a consistent view of the data.
The data supports forward and back iterations.
Data is automatically compressed using the Snappy compression library.
External activities (file system operations, etc.) are implemented through virtual interfaces, so users can customize the operating system interface.

Limit:
LEVELDB is not a SQL database, so SQL queries are not supported;
A time period can only have one process (possibly multithreading) access to the database;
There is no built-in customer-server in the library, if the application needs to support CS, you need to package the user's own server into the library.

1. Download Leveldb file:

git clone https://github.com/google/leveldb.git

2. To the LEVELDB directory, execute make command:

After the execution is complete:
leveldb/under the out-shared and Out-static directory, which out-shared/under:
DB db_bench Helpers libleveldb.so libleveldb.so.1 libleveldb.so.1.19 port table util

3. Copy the file

sudo cp out-shared/libleveldb.so*/usr/local/lib & sudo cp-r include/*/usr/local/include

Installation Complete ...

Git clone https://code.google.com/p/leveldb/
"1" GitHub address:
Https://github.com/google/leveldb
"2" LEVELDB usage Instructions:
https://github.com/google/leveldb/blob/master/doc/index.md

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.