[email protected] ssdb master / ll /usr/local/ssdb/ total 17848 drwxrwxrwx 6 root root 4096 Nov 24 19:41 api drwxrwxrwx 2 root root...">

当前位置:网站首页>SSDB基础1

SSDB基础1

2022-04-23 18:54:00 franket

默认将安装在 /usr/local/ssdb 目录下

[[email protected] ssdb-master]# ll /usr/local/ssdb/
total 17848
drwxrwxrwx 6 root root    4096 Nov 24 19:41 api
drwxrwxrwx 2 root root    4096 Nov 24 19:41 _cpy_
drwxrwxrwx 3 root root    4096 Nov 24 19:41 deps
-rwxrwxrwx 1 root root 4186529 Nov 24 19:41 ssdb-bench
drwxrwxrwx 2 root root    4096 Nov 24 19:41 ssdb_cli
-rwxrwxrwx 1 root root     149 Nov 24 19:41 ssdb-cli
-rwxrwxrwx 1 root root   12560 Nov 24 19:41 ssdb-cli.cpy
-rwxrwxrwx 1 root root     946 Nov 24 19:41 ssdb.conf
-rwxrwxrwx 1 root root 4531101 Nov 24 19:41 ssdb-dump
-rwxrwxrwx 1 root root 4546317 Nov 24 19:41 ssdb-repair
-rwxrwxrwx 1 root root 4950089 Nov 24 19:41 ssdb-server
-rwxrwxrwx 1 root root     705 Nov 24 19:41 ssdb_slave.conf
drwxrwxrwx 2 root root    4096 Nov 24 19:41 var
drwxrwxrwx 2 root root    4096 Nov 24 19:41 var_slave
[[email protected] ssdb-master]# 

启动和停止

前台运行

这种模式下会占用当前的terminal

[[email protected] ssdb]# ./ssdb-server  ssdb.conf 
ssdb-server 1.9.2
Copyright (c) 2012-2015 ssdb.io

查看进程状态

[[email protected] ssdb]# ps faux | grep ssdb | grep -v grep 
root     10734  0.4  1.8 184860 34508 pts/1    Sl+  20:29   0:07          \_ ./ssdb-server ssdb.conf
[[email protected] ssdb]# 

查看日志

[[email protected] ssdb]# cat log.txt 
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(46): ssdb-server 1.9.2
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(47): conf_file        : ssdb.conf
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(48): log_level        : debug
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(49): log_output       : log.txt
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(50): log_rotate_size  : 1000000000
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(52): main_db          : ./var/data
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(53): meta_db          : ./var/meta
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(54): cache_size       : 500 MB
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(55): block_size       : 32 KB
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(56): write_buffer     : 64 MB
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(57): max_open_files   : 500
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(58): compaction_speed : 1000 MB/s
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(59): compression      : yes
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(60): binlog           : yes
2015-11-24 20:29:21.692 [INFO ] ssdb-server.cpp(61): sync_speed       : -1 MB/s
2015-11-24 20:29:21.719 [INFO ] binlog.cpp(175): binlogs capacity: 20000000, min: 0, max: 0,
2015-11-24 20:29:21.729 [INFO ] server.cpp(159): server listen on 127.0.0.1:8888
2015-11-24 20:29:21.729 [INFO ] server.cpp(169): auth: off
2015-11-24 20:29:21.730 [DEBUG] cluster.cpp(13): Cluster init
2015-11-24 20:29:21.730 [INFO ] serv.cpp(329): key_range.kv: "", ""
2015-11-24 20:29:21.730 [INFO ] ssdb-server.cpp(84): pidfile: ./var/ssdb.pid, pid: 10734
2015-11-24 20:29:21.730 [INFO ] ssdb-server.cpp(85): ssdb server started.
2015-11-24 20:29:21.731 [DEBUG] ttl.cpp(112): load 0 keys into fast_keys
2015-11-24 20:29:21.732 [DEBUG] worker.cpp(17): writer 0 init
2015-11-24 20:29:21.732 [DEBUG] worker.cpp(17): reader 0 init
2015-11-24 20:29:21.733 [DEBUG] worker.cpp(17): reader 1 init
2015-11-24 20:29:21.741 [DEBUG] worker.cpp(17): reader 2 init
2015-11-24 20:29:21.742 [DEBUG] worker.cpp(17): reader 3 init
2015-11-24 20:29:21.758 [DEBUG] worker.cpp(17): reader 4 init
2015-11-24 20:29:21.775 [DEBUG] worker.cpp(17): reader 5 init
2015-11-24 20:29:21.794 [DEBUG] worker.cpp(17): reader 6 init
2015-11-24 20:29:21.810 [DEBUG] worker.cpp(17): reader 7 init
2015-11-24 20:29:21.810 [DEBUG] worker.cpp(17): reader 9 init
2015-11-24 20:29:21.811 [DEBUG] worker.cpp(17): reader 8 init
2015-11-24 20:34:22.630 [INFO ] server.cpp(203): server running, links: 0
2015-11-24 20:39:22.630 [INFO ] server.cpp(203): server running, links: 0
2015-11-24 20:44:22.630 [INFO ] server.cpp(203): server running, links: 0
2015-11-24 20:49:22.630 [INFO ] server.cpp(203): server running, links: 0
2015-11-24 20:54:22.630 [INFO ] server.cpp(203): server running, links: 0
2015-11-24 20:59:22.630 [INFO ] server.cpp(203): server running, links: 0
[[email protected] ssdb]# 

版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1986136