Redis enters command line

Source: Internet
Author: User

Start redis/usr/local/bin/redis-server/usr/local/redis/conf/redis.conf

Find REDIS-CLI

Find-name REDIS-CLI

Go to Redis command line

[Email protected] bin]# REDIS-CLI

127.0.0.1:6379>

Select Redis Library

127.0.0.1:6379> Select 1

Ok


View all keys under the 1 library

127.0.0.1:6379[1]> keys *

1) "Cribn.hsns.session.g0ejehnh8kh36b48mcv9v9h6o5"

2) "Cribn.hsns.5bcdd3322561a4543366e5c86c4245f0"

3) "Cribn.hsns.0a28ade61326dd457279553866d54dad"

4) "cribn.hsns.01a5a42c12a9649d525b936beddcf087"

5) "Cribn.hsns.a8975cd71aa3a48de86a43076886b5be"

6) "cribn.hsns.413ae7d6f143aac41756cfb3805ba634"

7) "Cribn.hsns.7d283d2b9a903eced1c73e2818b73e90"

8) "Cribn.hsns.f9c228f53ec7504e8aabc5040d9a4cab"

9) "cribn.hsns.5d8a9c4e7ba76c5a82c37b5d85ce6519"

"Cribn.hsns.session.1npnde9d547ck36vhhamnqsm82"

One) "CRIBN.HSNS.A4725FB26F713859E64ABB6955CD2C05"

"Cribn.hsns.8df49fc8505afabe67deb57fbc18b3ac"

"Cribn.hsns.b1b38d6668a5c00e90c945561f3ae5e9"

"Cribn.hsns.1299832f72f75ed137f478498130cd3f"


View the total number of keys under the current library

127.0.0.1:6379[1]> dbsize

(integer) 14

Redis enters command line

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.