成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

Centos7安裝RocksDB

1、安裝依賴

專注于為中小企業(yè)提供成都做網(wǎng)站、網(wǎng)站制作服務(wù),電腦端+手機(jī)端+微信端的三站合一,更高效的管理,為中小企業(yè)筠連免費(fèi)做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動(dòng)了千余家企業(yè)的穩(wěn)健成長(zhǎng),幫助中小企業(yè)通過網(wǎng)站建設(shè)實(shí)現(xiàn)規(guī)模擴(kuò)充和轉(zhuǎn)變。

yum?-y?install?lrzsz?git?gcc?gcc-c++?lz4-devel
?yum?-y?install?snappy?snappy-devel?zlib?zlib-devel?bzip2?bzip2-devel?lz4?lz4-devel?zstd

2、下載安裝cmake(gflags-2.2.2對(duì)cmake版本有要求)

curl?-O???https://cmake.org/files/v3.6/cmake-3.6.0-Linux-x86_64.tar.gz
mv?cmake-3.6.0-Linux-x86_64.tar.gz?/opt/
cd?/opt/
tar?-xvzf?cmake-3.6.0-Linux-x86_64.tar.gz?
yum?remove?cmake

cat?>>/etc/profile?<<EOF

export?PATH=\$PATH:/opt/cmake-3.6.0-Linux-x86_64/bin

EOF
source?/etc/profile

3、安裝依賴gflags

wget???https://github.com/gflags/gflags/archive/v2.2.2.tar.gz
我這里是windows下載好上傳的文件包
tar?-xvzf?gflags-2.2.2.tar.gz
cd?gflags-2.2.2/
mkdir?build
cd?build/
cmake?-DBUILD_SHARED_LIBS=ON?-DBUILD_STATIC_LIBS=ON?-DINSTALL_HEADERS=ON?-DINSTALL_SHARED_LIBS=ON?-DINSTALL_STATIC_LIBS=ON?..
make
make?install
添加lib信息
cat?>>/etc/profile?<<EOF

export?LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib
EOF
source?/etc/profile

4、下載安裝rocksdb

wget?https://github.com/facebook/rocksdb/archive/v6.4.6.tar.gz
我這里用的是windows下載的包
tar?-xvzf?rocksdb-6.4.6.tar.gz?
cd?rocksdb-6.4.6/
mkdir?build
cd?build
cmake?-DCMAKE_INSTALL_PREFIX=/usr/local/rocksdb?..
make
make?install

cat?>>/etc/profile?<<EOF

export?CPLUS_INCLUDE_PATH=\$CPLUS_INCLUDE_PATH:/usr/local/rocksdb/include/
export?LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/rocksdb/lib64/
export?LIBRARY_PATH=\$LIBRARY_PATH:/usr/local/rocksdb/lib64/

EOF

source?/etc/profile

5、ldb工具進(jìn)行測(cè)試

cd?rocksdb-6.4.6/build/tools/

[root@es1?tools]#?./ldb?-help
ldb?-?RocksDB?Tool

commands?MUST?specify?--db=<full_path_to_db_directory>?when?necessary

The?following?optional?parameters?control?if?keys/values?are?input/output?as?hex?or?as?plain?strings:
??--key_hex?:?Keys?are?input/output?as?hex
??--value_hex?:?Values?are?input/output?as?hex
??--hex?:?Both?keys?and?values?are?input/output?as?hex

The?following?optional?parameters?control?the?database?internals:
??--column_family=<string>?:?name?of?the?column?family?to?operate?on.?default:?default?column?family
??--ttl?with?'put','get','scan','dump','query','batchput'?:?DB?supports?ttl?and?value?is?internally?timestamp-suffixed
??--try_load_options?:?Try?to?load?option?file?from?DB.
??--ignore_unknown_options?:?Ignore?unknown?options?when?loading?option?file.
??--bloom_bits=<int,e.g.:14>
??--fix_prefix_len=<int,e.g.:14>
??--compression_type=<no|snappy|zlib|bzip2|lz4|lz4hc|xpress|zstd>
??--compression_max_dict_bytes=<int,e.g.:16384>
??--block_size=<block_size_in_bytes>
??--auto_compaction=<true|false>
??--db_write_buffer_size=<int,e.g.:16777216>
??--write_buffer_size=<int,e.g.:4194304>
??--file_size=<int,e.g.:2097152>


Data?Access?Commands:
??put?<key>?<value>??[--ttl]
??get?<key>?[--ttl]
??batchput?<key>?<value>?[<key>?<value>]?[..]?[--ttl]
??scan?[--from]?[--to]??[--ttl]?[--timestamp]?[--max_keys=<N>q]??[--start_time=<N>:-?is?inclusive]?[--end_time=<N>:-?is?exclusive]?[--no_value]
??delete?<key>
??deleterange?<begin?key>?<end?key>
??query?[--ttl]
????Starts?a?REPL?shell.??Type?help?for?list?of?available?commands.
??approxsize?[--from]?[--to]?
??checkconsistency


Admin?Commands:
??dump_wal?--walfile=<write_ahead_log_file_path>?[--header]??[--print_value]??[--write_committed=true|false]?
??compact?[--from]?[--to]?
??reduce_levels?--new_levels=<New?number?of?levels>?[--print_old_levels]
??change_compaction_style?--old_compaction_style=<Old?compaction?style:?0?for?level?compaction,?1?for?universal?compaction>?--new_compaction_style=<New?compaction?style:?0?for?level?compaction,?1?for?universal?compaction>
??dump?[--from]?[--to]??[--ttl]?[--max_keys=<N>]?[--timestamp]?[--count_only]?[--count_delim=<char>]?[--stats]?[--bucket=<N>]?[--start_time=<N>:-?is?inclusive]?[--end_time=<N>:-?is?exclusive]?[--path=<path_to_a_file>]
??load?[--create_if_missing]?[--disable_wal]?[--bulk_load]?[--compact]
??manifest_dump?[--verbose]?[--json]?[--path=<path_to_manifest_file>]
??list_column_families?full_path_to_db_directory?
??create_column_family?--db=<db_path>?<new_column_family_name>
??drop_column_family?--db=<db_path>?<column_family_name_to_drop>
??dump_live_files
??idump?[--from]?[--to]??[--input_key_hex]?[--max_keys=<N>]?[--count_only]?[--count_delim=<char>]?[--stats]
??repair
??backup?[--backup_env_uri]??[--backup_dir]??[--num_threads]??[--stderr_log_level=<int?(InfoLogLevel)>]?
??restore?[--backup_env_uri]??[--backup_dir]??[--num_threads]??[--stderr_log_level=<int?(InfoLogLevel)>]?
??checkpoint?[--checkpoint_dir]?
??write_extern_sst?<output_sst_path>
??ingest_extern_sst?<input_sst_path>?[--move_files]??[--snapshot_consistency]??[--allow_global_seqno]??[--allow_blocking_flush]??[--ingest_behind]??[--write_global_seqno]?

[root@es1?tools]#?pwd
/root/rocksdb-6.4.6/build/tools
[root@es1?tools]#?./ldb?--db=/tmp/test_db?--create_if_missing?put?a1?b1
OK

[root@es1?tools]#?./ldb?--db=/tmp/test_db?scan
a1?:?b1

[root@es1?tools]#?./ldb?--db=/tmp/test_db?get?a1
b1

[root@es1?tools]#?./ldb?--db=/tmp/test_db?get?a2
Failed:?NotFound:?
[root@es1?tools]#?cd?/tmp/test_db/
[root@es1?test_db]#?ll
總用量?536
-rw-r--r--.?1?root?root????26?11月?20?11:10?000003.log
-rw-r--r--.?1?root?root????16?11月?20?11:10?CURRENT
-rw-r--r--.?1?root?root????37?11月?20?11:10?IDENTITY
-rw-r--r--.?1?root?root?????0?11月?20?11:10?LOCK
-rw-r--r--.?1?root?root?17288?11月?20?11:11?LOG
-rw-r--r--.?1?root?root?16731?11月?20?11:10?LOG.old.1574219445796772
-rw-r--r--.?1?root?root?17288?11月?20?11:10?LOG.old.1574219486641937
-rw-r--r--.?1?root?root?17288?11月?20?11:11?LOG.old.1574219490543572
-rw-r--r--.?1?root?root????13?11月?20?11:10?MANIFEST-000001
-rw-r--r--.?1?root?root??5120?11月?20?11:10?OPTIONS-000005
[root@es1?test_db]#?more?000003.log

當(dāng)前文章:Centos7安裝RocksDB
地址分享:http://jinyejixie.com/article44/ghopee.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開發(fā)、網(wǎng)站內(nèi)鏈、微信公眾號(hào)自適應(yīng)網(wǎng)站、網(wǎng)頁設(shè)計(jì)公司、網(wǎng)站導(dǎo)航

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營
钟祥市| 弥渡县| 惠东县| 青州市| 甘孜县| 铜川市| 永和县| 固始县| 板桥市| 松原市| 遂川县| 滨海县| 民权县| 莱芜市| 滁州市| 怀仁县| 舟曲县| 信宜市| 平遥县| 绿春县| 黄浦区| 朔州市| 韶关市| 曲沃县| 乳山市| 彩票| 昌吉市| 定南县| 嘉兴市| 昔阳县| 肥东县| 宜章县| 正宁县| 临西县| 黄浦区| 涡阳县| 西华县| 石首市| 临桂县| 渑池县| 铅山县|