Home  >  Article  >  Database  >  What is the specific method for remote connection to redis on Linux?

What is the specific method for remote connection to redis on Linux?

WBOY
WBOYforward
2023-06-03 09:40:081667browse

Redis is the remote dictionary service. It is an open source log-type Key-Value database written in ANSI C language, supports the network, and can be based on memory or persistence.

Linux remote connection redis specific method

Connect remotely

 redis-cli -h 47.101.63.222 -p 56379

Connect local

 redis-cli

Set password

 config set requirepass pass_123456

Get password

 config get requirepass

Login

 auth pass_123456

The above is the detailed content of What is the specific method for remote connection to redis on Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete