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

Monitoring dump.rdb using redis-db-tools Analysi

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Redis-db-tools is developed using Python. It is recommended to use Python2.7.12, before using Python2.6.6 to start the Times error.

Follow the online tutorials to install Python yourself, and the system environment is centos.

Download pip, http://www.python-libs.com/13205/item/detail.html after Python installation

Install pip after download

# install 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, or run the command python2.7-m pip as a module, either without entering the directory.

Use the command pip install rdbtools to install redis-db-tools

Install the redis-py client for find memory by a single key, using the command pip install redis

At this point, dbtool is installed.

Note that you also need to be in the Python installation directory when using it.

For more information on specific usage rules and use cases, please see:

Https://github.com/sripathikrishnan/redis-rdb-tools

There is a specific manual in it.

The result of exporting excel is as follows:

Databasetypekeysize_in_bytesencodingnum_elementslen_largest_element0hashLAST_DRIVE_GREEN_LEADERBOARD_3283ziplist2180hashVALCAN_RAILWAYS_DATA_HASDED_DATA11448484hashtable1241871270hashVALCAN_BUSTOP_TRAIN_DATA232379812hashtable53805210080hashLAST_DRIVE_GREEN_LEADERBOARD52644hashtable71180hashVALCAN_RAILWAYS_DATA15302964hashtable37231102320stringWX_ACCESS_TOKEN256string138138

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