Get the App
SLTechnology News&Howtos  ›  Database  › 

How to set up and access redis database

Shulou Source: shulou.com Published: 2022-06-01 16:03:04 09月28日 Update

Redis is a high-performance key-value database. The emergence of redis makes up for the deficiency of key/value storage such as memcached to a great extent, and can play a good complementary role to relational database in partial situations. It provides clients such as Java,C/C++,C#,PHP,JavaScript,Perl,Object-C,Python,Ruby,Erlang, which is easy to use.

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

2. Change protected-mode to no in the configuration file redis.conf

3. Set the redis access authorization password for requirepass in the configuration file redis.conf (you can set it at will). You can also log in to the redis client and use the command settings as follows:. / redis-cli config set requirepass 123 / / 123 is the password

After the above three steps, it is basically OK, but there are also special circumstances, the access port number 6379 may be blocked by the firewall, you need to turn off the firewall of the system or cancel the blocking of port 6379. I will not elaborate on it here.

The above are the details of how to enter the redis database, please pay attention to other related articles!

Tags: Data database file configuration client client password firewall fire protection large special function content field slogan command that is situation article more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei macOS Xiaomi OPPO Reno Apple