SSDB database notes

SSDB: a high-performance support NoSQL database rich data structures, used to replace Redis.

references:

SSDB official website

surroundings

win10 environment under wsl of ubuntu ssdb

Profiles

Profiles Use Tab instead of spaces to indent to do (after copying the configuration file to replace the space to make the Tab)

    work_dir = /usr/data/ssdb_8883  
    pidfile = /usr/data/ssdb_8883.pid  
      
    server:  
            ip: 0.0.0.0  
            port: 8883  
            allow: 127.0.0.1  
            allow: 192.168  
      
    replication:  
            binlog: yes  
            sync_speed: -1  
            slaveof:  
                    type: sync  
                    ip: 127.0.0.1  
                    port: 8881  
      
    logger:  
            level: error  
            output: /usr/data/ssdb_8883.log  
            rotate:  
                    size: 1000000000  
      
    leveldb:  
            cache_size: 500  
            block_size: 32  
            write_buffer_size: 64  
            compaction_speed: 1000  
            compression: yes  

Start the server

nohup /usr/servers/ssdb-1.8.2/ssdb-server  /usr/chapter7/ssdb_desc_8883.conf &  
ps -aux | grep ssdb # 命令看是否启动了
tail -f nohup.out # 查看错误信息

Client

ssdb-server is the server program, ssdb-cli is a command perform while the client

/usr/servers/ssdb-1.8.2/tools/ssdb-cli -p 8888  
# 因为SSDB支持Redis协议,所以用Redis客户端也可以访问
/usr/servers/redis-2.8.19/src/redis-cli  -p 8888   

Guess you like

Origin www.cnblogs.com/jarvankuo/p/11955052.html