Get the App
SLTechnology News&Howtos  ›  Database  › 

Install and configure redis in Linux

Shulou Source: shulou.com Published: 2022-06-01 19:31:35 11月15日 Update

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!

Tags: File configuration Zhongan customer client comments source code firewall service fire prevention good for this host code content that is articles daily work understanding more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker Shulou Tech Info Redmi MySQL