Home >Database >Redis >How to enter the redis database

How to enter the redis database

(*-*)浩
(*-*)浩Original
2019-11-26 11:14:185010browse

How to enter the redis database

1. Comment out the bound IP in the configuration file redis.conf

How to enter the redis database# 2. Change protected-mode to no in the configuration file redis.conf

How to enter the redis database#3. Set requirepass in the configuration file redis.conf to set the redis access authorization password (just set it yourself). You can also log in to the redis client and use the command to set it: as follows : ./redis-cli config set requirepass 123 //123 is the password

After the above three steps, it is basically enough, but there are special circumstances, the access port No. 6379 may be blocked by the firewall. You need to turn off the system's firewall or cancel the blocking of port 6379. I will not go into details here.

How to enter the redis databaseFor more Redis-related technical articles, please visit the

Redis Getting Started Tutorial

column to learn!

The above is the detailed content of How to enter the redis database. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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