In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to install and use SSDB. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Introduction: SSDB is a high-performance NoSQL database supporting rich data structures, using hard disk storage, using Google high-performance storage engine LevelDB, can be used to replace Redis.
SSDB features:
Replace Redis database, 100x capacity of Redis
LevelDB network support, developed using CumberCraft +
Redis API compatible with Redis client
Suitable for storing collection data, such as list, hash, zset...
The languages supported by client-side API include: clipping, PHP, Python, Java, Go
Persistent queuing service
Master-slave replication, load balancing
Download:
# wget-- no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
# unzip master
# cd ssdb-master
Compile:
# make
Compilation error:
Makefile:4: build_config.mk: No such file or directory
Make: * No rule to make target `build_config.mk'. Stop.
Solution:
# yum install-y autoconf
Continue to compile and report another error:
Make [1]: Leaving directory `/ root/ssdb/ssdb-master/src/client'
Cd src/ssdb; make
Make [1]: Entering directory `/ root/ssdb/ssdb-master/src/ssdb'
Gmail +-DNDEBUG-D__STDC_FORMAT_MACROS-Wall-O2-Wno-sign-compare-I "/ root/ssdb/ssdb-master/deps/leveldb-1.20/include"-I "/ root/ssdb/ssdb-master/deps/jemalloc-4.1.0/include"-c ssdb_impl.cpp
Gmail +-DNDEBUG-D__STDC_FORMAT_MACROS-Wall-O2-Wno-sign-compare-I "/ root/ssdb/ssdb-master/deps/leveldb-1.20/include"-I "/ root/ssdb/ssdb-master/deps/jemalloc-4.1.0/include"-c iterator.cpp
Gmail +-DNDEBUG-D__STDC_FORMAT_MACROS-Wall-O2-Wno-sign-compare-I "/ root/ssdb/ssdb-master/deps/leveldb-1.20/include"-I "/ root/ssdb/ssdb-master/deps/jemalloc-4.1.0/include"-c options.cpp
Gmail +-DNDEBUG-D__STDC_FORMAT_MACROS-Wall-O2-Wno-sign-compare-I "/ root/ssdb/ssdb-master/deps/leveldb-1.20/include"-I "/ root/ssdb/ssdb-master/deps/jemalloc-4.1.0/include"-c t_kv.cpp
Gmail +-DNDEBUG-D__STDC_FORMAT_MACROS-Wall-O2-Wno-sign-compare-I "/ root/ssdb/ssdb-master/deps/leveldb-1.20/include"-I "/ root/ssdb/ssdb-master/deps/jemalloc-4.1.0/include"-c t_hash.cpp
T_hash.cpp: In member function 'virtual int64_t SSDBImpl::hfix (const Bytes&)':
T_hash.cpp:288: error: 'UINT64_MAX' was not declared in this scope
Make [1]: * * [t_hash.o] Error 1
Make [1]: Leaving directory `/ root/ssdb/ssdb-master/src/ssdb'
Solution:
# cd / root/ssdb/ssdb-master/src/ssdb
Edit the t_hash.h file and add the following line under # define SSDB_HASH_H_:
# ifndef UINT64_MAX
# define UINT64_MAX (18446744073709551615ULL)
# endif
Save exit
# cd / root/ssdb/ssdb-master
# make
The compilation passed successfully again.
Installation:
# make install
Start:
#. / ssdb-server-d ssdb.conf
Ssdb-server 1.9.7
Copyright (c) 2012-2015 ssdb.io
Stop:
#. / ssdb-server ssdb.conf-s stop
Ssdb-server 1.9.7
Copyright (c) 2012-2015 ssdb.io
Use:
#. / tools/ssdb-cli-p 8888
No module named readline
Ssdb (cli)-ssdb command line tool.
Copyright (c) 2012-2016 ssdb.io
'h' or 'help' for help,' q' to quit.
Ssdb-server 1.9.7
Ssdb 127.0.0.1purl 8888 >
Ssdb 127.0.0.1 8888 > set hello world
Ok
(0.002 sec)
Ssdb 127.0.0.1purl 8888 >
Ssdb 127.0.0.1purl 8888 >
Ssdb 127.0.0.1 8888 > get hello
World
(0.002 sec)
Thank you for reading! This is the end of the article on "how to install and use SSDB". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.