The redis-db-tools is developed using Python. It is recommended to use Python2.7.12 before using Python2.6.6 to start the times wrong.
Follow the online tutorial to install Python yourself, the system environment is CentOS.
Python Install later download pip,http://www.python-libs.com/13205/item/detail.html
PIP is downloaded and installed
#安装piptar-zxvf pip-9.0.1.tar.gz CD pip-9.0.1python setup.py install
After the PIP installation is successful, enter/usr/local/python2.7/bin
Install redis-db-tools using the command pip install Rdbtools
Install the Redis-py client for find memory by a single key, using the command pip install Redis
At this point, Dbtool installation is complete.
Note that the same needs to be used in the Python installation directory.
Specific usage rules and use cases are described in:
Https://github.com/sripathikrishnan/redis-rdb-tools
There's a specific user manual.
After you export Excel, the results are as follows:
Database |
Type |
Key |
Size_in_bytes |
Encoding |
Num_elements |
Len_largest_element |
0 |
Hash |
Last_drive_green_leaderboard_3 |
283 |
Ziplist |
21st |
8 |
0 |
Hash |
Valcan_railways_data_hasded_data |
11448484 |
Hashtable |
124187 |
127 |
0 |
Hash |
Valcan_bustop_train_data |
232379812 |
Hashtable |
53805 |
21008 |
0 |
Hash |
Last_drive_green_leaderboard |
52644 |
Hashtable |
711 |
8 |
0 |
Hash |
Valcan_railways_data |
15302964 |
Hashtable |
37231 |
10232 |
0 |
String |
Wx_access_token |
256 |
String |
138 |
138 |
This article from "Upright Heroes" blog, reproduced please contact the author!
Monitor Dump.rdb with Redis-db-tools analysis