Examples of single installation Redis CentOS7

Due to environmental differences, the installation process may encounter a variety of problems, do not panic, according to the error can be resolved.

1, redis download
download address: redis.io
such Redis mounted to the / usr / local / soft /

cd /usr/local/soft/
wget http://download.redis.io/releases/redis-5.0.5.tar.gz

2, extracting archive

tar -zxvf redis-5.0.5.tar.gz

3, install gcc rely
Redis is written in C language compiler needs

yum install gcc

4, compile and install

cd redis-5.0.5
make MALLOC=libc

The installation /usr/local/redis-5.0.5/src directory binaries to / usr / local / bin

cd src
make install

5, modify the configuration file
The default configuration file is /usr/local/redis-5.0.5/redis.conf
background start

daemonize no

Change

daemonize yes

The following line must be changed to bind 0.0.0.0 or comments, or can only access this machine

bind 127.0.0.1 

If a password is required to access, cancel the annotation requirepass

requirepass yourpassword

6, using the specified configuration file to start Redis (the recommended configuration command alias)

/usr/local/soft/redis-5.0.5/src/redis-server /usr/local/soft/redis-5.0.5/redis.conf

7, enter the client (the recommended configuration command alias)

/usr/local/soft/redis-5.0.5/src/redis-cli

8, stop redis (on the client)

redis> shutdown

or

ps -aux | grep redis
kill -9 xxxx

Win7 comes available Redis a visualization client (redis-desktop-manager-0.8.3.3850 )
Link: https: //pan.baidu.com/s/1m6QoUaU0AKLfiXGhSNDJww
extraction code: ewa0

Reprinted Source: https://gper.club/articles/7e7e7f7ff7g5egc4g6b

Guess you like

Origin www.cnblogs.com/Payne-SeediqBale/p/11706476.html