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

The method of using command to connect redis remotely

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Today, what the editor shares with you is the method of using commands to connect redis remotely, but many people don't know much about it. Today, in order to make you know more about the method of command remote connection to redis, I summed up the following contents for you. Let's look down together. I'm sure you'll get something.

The Redis command is used to perform operations on the redis service.

A redis client is required to execute commands on the redis service. The Redis client is in the redis installation package we downloaded earlier.

Grammar

The basic syntax for the Redis client is:

Start the redis client, open the terminal and enter the command redis-cli. This command connects to the local redis service.

$redis-cliredis 127.0.0.1 PINGPONG 6379 > redis 127.0.0.1

Remote

$redis-cli-h host-p port-a password

Connect remotely

Wd@wd:/usr/local/bin$. / redis-cli-h redis.dm.com-p 6381

The above is a brief introduction to the method of using the command to connect redis remotely. Of course, the differences in the detailed use of the above have to be understood by everyone. If you want to know more, welcome to follow the industry information channel!

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