Home > Database > Redis > 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
Release: 2023-06-03 09:40:08
forward
1716 people have browsed it

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
Copy after login

Connect local

 redis-cli
Copy after login

Set password

 config set requirepass pass_123456
Copy after login

Get password

 config get requirepass
Copy after login

Login

 auth pass_123456
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template