How to deploy and install Redis 6.2.0 with CentOS 7.5 source package
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