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

How to deploy and install Redis 6.2.0 with CentOS 7.5 source package

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

In this article Xiaobian for you a detailed introduction of "how to use CentOS 7.5 source package deployment and installation of Redis 6.2.0", detailed content, clear steps, details handled properly, I hope this "how to use CentOS 7.5 source package deployment and installation of Redis 6.2.0" article can help you solve doubts, following the editor's ideas slowly in-depth, together to learn new knowledge.

Install Redis 6.2.0

Wget http://download.redis.io/releases/redis-6.2.0.tar.gz

Yum-y install gcc automake autoconf libtool make

Tar-xzvf redis-6.2.0.tar.gz & & redis-6.2.0.tar.gz

Cd redis-6.2.0

Make

Cd src

Make install PREFIX=/usr/local/redis

If zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: does not have that file or directory, run the command

Make MALLOC=libc

Cd.. /

Mkdir / etc/redis

Mv redis.conf / etc/redis/

Vim / etc/redis/redis.conf

/ / change daemonize no to daemonize yes, and enter the number of lines + gg to jump lines quickly. For example, skip to line 138 and type: 138gg

/ / comment line 70 bind

/ / Line 90 protected-mode is changed to no

/ / uncomment line 502 and change the password

Add Redis to boot

Cat > > / etc/rc.local / etc/profile

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

Development

Wechat

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

12
Report