To compile and install the GCC compiler yum-y install gcc* before compiling
ssdb-mastermake# 将安装在 /usr/local/ssdb 目录下sudo make install
Problem solving
If the following error occurs:
g++ ...deps/snappy-1.1.0/.libs/libsnappy.a: No such file or directorymake[1]: *** [all] Error 1
Or
g++ ...deps/jemalloc-3.3.1/lib/libjemalloc.a: No such file or directorymake[1]: *** [all] Error 1
This is because Snappy or Jemalloc did not compile successfully, which is usually due to a problem with your system clock. This can be resolved:
deps/snappy-1.1.0;./configuremake
Or
deps/jemalloc-3.3.1;./configuremake
Start
# 启动主库./ssdb-server ssdb.conf# 或者启动为后台进程./ssdb-server -d ssdb.conf# 启动 ssdb 命令行./tools/ssdb-ssdb-server./ssdb-server ssdb.conf -s stop# 对于旧版本kill `cat ./var/ssdb.pid`
So far, you need to manually manage the ssdb-server
process and if you want to manage it automatically when the operating system starts and stops, follow the instructions below.
SSDB startup scripts (with OS self-booting)
Suppose you have installed SSDB in the default /usr/local/ssdb
directory and put the script in the tools/ssdb.sh
/etc/init.d
directory.
Note: For CentOS users, use the
ssdb.sh
Rename to
ssdb
.
Edit the following content:
# each config file for one instanceconfigs=/data/ssdb_data/test/ssdb.conf
will be /data/ssdb_data/test/ssdb.conf
modified to the path of your SSDB profile. If you have multiple SSDB instances, write them in one line, separated by a space:
# each config file for one instanceconfigs=/data/ssdb_data/test/ssdb.conf /data/ssdb_data/demo/ssdb.conf
Centos
Chkconfig--add Ssdb
CentOS Installation Ssdb