环境:
OS:Centos 7
db:1.9.8
1.下载安装介质
[root@localhost soft]# wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
2.解压安装
[root@localhost soft]#unzip master.zip
[root@localhost soft]#cd ssdb-master
[root@localhost ssdb-master]#make
[root@localhost ssdb-master]#make install PREFIX=/usr/local/services/ssdb
3.修改配置文件
[root@host135 ssdb]# more ssdb.conf
# ssdb-server config # MUST indent by TAB! # absolute path, or relative to path of this file, directory must exists work_dir = ./var pidfile = ./var/ssdb.pid server: # specify an ipv6 address to enable ipv6 support # ip: ::1 ##ip: 127.0.0.1 ##注意这里需要注释掉 port: 8888 # bind to public ip ip: 0.0.0.0 ##去掉注释,开放本地ip访问 # format: allow|deny: all|ip_prefix # multiple allows or denys is supported #deny: all #allow: 127.0.0.1 #allow: 192.168 # auth password must be at least 32 characters #auth: very-strong-password #readonly: yes # in ms, to log slowlog with WARN level #slowlog_timeout: 5 replication: binlog: yes # Limit sync speed to *MB/s, -1: no limit sync_speed: -1 slaveof: # to identify a master even if it moved(ip, port changed) # if set to empty or not defined, ip:port will be used. #id: svc_2 # sync|mirror, default is sync #type: sync #host: localhost #port: 8889 logger: level: debug output: /home/logs/ssdb/log.txt rotate: size: 1000000000 leveldb: # in MB cache_size: 500 # in MB write_buffer_size: 64 # in MB/s compaction_speed: 1000 # yes|no compression: yes
需要创建日志目录
mkdir -p /home/logs/ssdb/
4.启动
[root@host135 ssdb]#/usr/local/services/ssdb/ssdb-server -d /usr/local/services/ssdb/ssdb.conf
ssdb-server 1.9.8
Copyright (c) 2012-2015 ssdb.io
5.登录
/usr/local/services/ssdb/ssdb-cli -h 192.168.1.134 -p 8888
标签:单机,ssdb,ip,sync,部署,master,root,localhost From: https://www.cnblogs.com/hxlasky/p/16739030.html