In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install redis in linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
How does linux install redis?
Linux installation steps:
1. Get redis resources
Wget http://download.redis.io/releases/redis-4.0.8.tar.gz
two。 Decompression
Tar xzvf redis-4.0.8.tar.gz
3. Installation
Cd redis-4.0.8 make cd src make install PREFIX=/usr/local/redis
4. Move the configuration file to the installation directory
Cd.. / mkdir / usr/local/redis/etc mv redis.conf / usr/local/redis/etc
5. Configure redis to start in the background
Vi / usr/local/redis/etc/redis.conf / / change daemonize no to daemonize yes
6. Add redis to boot
Vi / etc/rc.local / / add something to it: / usr/local/redis/bin/redis-server / usr/local/redis/etc/redis.conf (meaning to start up and call the command to open redis)
7. Turn on redis
/ usr/local/redis/bin/redis-server / usr/local/redis/etc/redis.conf
Common command
Redis-server / usr/local/redis/etc/redis.conf / / start redis pkill redis/ / stop redis
Uninstall redis:
Rm-rf / usr/local/redis / / Delete the installation directory rm-rf / usr/bin/redis-* / / Delete all redis-related command scripts rm-rf / root/download/redis-4.0.4 / / Delete the redis decompression folder on how to install redis in linux, and that's it. I hope the above can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.