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

Install and configure redis in Linux

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

Share

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

Today, the editor will bring you an article on installing and configuring redis in Linux. The editor thinks it's pretty good, so I'll share it for you as a reference. Let's follow the editor and have a look.

1 installation

Now that windows has downloaded the source code package, I need to drag and drop it to Linux, and then:

$tar xzf redis source package $mv redis file / usr/local/$ cd / usr/local/redis file $make$ export PATH=$PATH:/usr/local/redis file / src

2 configure redis.conf

$cd / usr/local/redis file $vim redis.conf$ bind 127.0.0.1 # comment out $daemonize no # to yes$ protected-mode yes # to no$ cp redis.conf / etc/redis.conf

3 start redis

Redis-server redis.conf

4 start the client

Redis-cli

Ready to operate

5 redis-desktop-manager remote connection

1 first make sure that the client can ping the host of the server

2 comment out bind 127.0.0.1 in the redis.conf file

3 turn off the firewall or modify the firewall rules

4 you can connect after starting the redis service

These are the details of installing and configuring redis in Linux. The code example is simple and straightforward, if you encounter this problem in your daily work. Through this article, I hope you can get something. For more details, please follow the industry information channel!

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

Database

Wechat

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

12
Report