Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ssdb operation document

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

#Start as a background process (does not block command line)

./ ssdb-server -d ssdb.conf

#Restart

./ ssdb-server -d ./ ssdb.conf -s restart

Close the database

./ ssdb-server ./ ssdb.conf -s stop

#Change ssdb.conf on SSDB server side to allow all client connections

[root@localhost ssdb]# vi ssdb.conf

server:

ip: 0.0.0.0 #Allow all client connections, default 127.0.0.1

port: 8888

#Use the following command to connect to ssdb database on SSDB client

cd /ssdb-master/tools

./ ssdb-cli -h 10.20.1.225-p 8888 #Connect to SSDB-server

ssdb 10.20.1.225:8888>info

serv_key_range

kv : "" - ""

hash: "" - ""

zset: "" - ""

list: "" - ""

data_key_range

kv : "" - ""

hash: "raw_proxy" - "useful_proxy"

zset: "" - ""

list: "" - ""

leveldb.stats

Compactions

Level Files Size(MB) Time(sec) Read(MB) Write(MB)

--------------------------------------------------

0 2 0 0 0 0

ssdb 10.20.1.225:8888> hgetall useful_proxy #Query Key-Value list for data type =hash, set name =useful_proxy

.....

77.120.93.53:8080: 1

78.160.160.209:8080: -1

80.211.232.151:8080: 1

80.253.147.218:8080: 0

82.114.90.161:53281: 1

91.109.148.39:8080: 1

92.50.48.98:8080: 1

94.177.201.18:8080: 1

94.19.171.94:8081: 1

314 result(s) (0.030 sec) #Total 314 records, where key=ip:port, value=1 (available proxy IP)

Export the entire database

ssdb 10.20.1.225:8888>export backup.ssdb

#Import the entire database

ssdb 10.20.1.225:8888>import backup.ssdb

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report