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

What is the method for centos to install redis as a RPM package

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

What is the way for centos to install redis in RPM package? I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Redis (full name: Remote Dictionary Server remote Dictionary Service) is an open source API that is written in ANSI C language, supports the network, can be memory-based and persistent, and provides multi-language API. Since March 15, 2010, the development of Redis has been presided over by VMware.

Platform: centos 6.5x86x64

Installation: redis-3.0.7-4.el6.art.x86_64.rpm

Download the rpm package

Open the address http://pkgs.org/download/redis and go in according to your own linux platform and the redis version you need to install to download the corresponding rpm package. Here we take redis 3.0.7 as an example to install:

[root@21yunwei src] # wget http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/redis-3.0.7-4.el6.art.x86_64.rpm

Installation

[root@21yunwei src] # rpm-ivh redis-3.0.7-4.el6.art.x86_64.rpm

It should be noted here that an error is usually reported if it is a newly acquired system or when the jemallock library is not installed:

[root@21yunwei src] # rpm-ivh redis-3.0.7-4.el6.art.x86_64.rpm warning: redis-3.0.7-4.el6.art.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEYerror: Failed dependencies: libjemalloc.so.1 () (64bit) is needed by redis-3.0.7-4.el6.art.x86_64

Solution:

Yum install epel-release-yyum install jemalloc-y

Install again and resolve the problem:

[root@21yunwei src] # rpm-ivh redis-3.0.7-4.el6.art.x86_64.rpm warning: redis-3.0.7-4.el6.art.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEYPreparing... # [100%] 1:redis #

Run and set up self-startup

Start the newly installed redis:

[root@21yunwei src] # / etc/init.d/redis startStarting redis-server: [OK]

Set up self-startup

[root@21yunwei src] # chkconfig redis on

The redis installed here is not set or optimized by default, and the specific use still needs to be adjusted according to your own business requirements or security settings.

After reading the above, have you mastered centos's method of installing redis as a RPM package? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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

Servers

Wechat

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

12
Report