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

How to set up and access redis database

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

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!

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

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report