In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to use RPM package to install redis in CentOS", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use RPM package to install redis in CentOS" article.
Redis is a high-performance key-value database. The emergence of redis makes up for the deficiency of keyvalue storage such as memcached to a great extent, and can play a good complementary role to relational database in partial situations.
Preparation in advance
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 install [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.rpmwarning: 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.rpmwarning: 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 self-startup
Start the newly installed redis:
[root@21yunwei src] # / etc/init.d/redis startStarting redis-server: [OK] set self-launch [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.
The above is about "how to use RPM package to install redis in CentOS". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to 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.
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.