CentOS Installation Ssdb

Source: Internet
Author: User

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.shRename 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

Related Article

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.