Linux system redis installation

Source installation:

1. Download the redis installation package

wget http://download.redius.io.releases/redis-3.2.11.tar.gz

2. Unarchive

gunzip redis-3.2.11.tar.gz

3. Unzip

tar -xvf redis-3.2.11.tar

4. Install redis

make test

yum install:

1. Install redis

yum install redis

2. Start the redis-server service

redis-server

3. Start redis

systemctl start redis

4. Enter redis.conf to modify IP and password

:/bind
:/requirepassword

5. View the process

ps -aux| grep redis

6. Kill the process

kill -9 PID

7. Restart redis

systemctl start redis

8. Start redis-cli

redis-cli

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325504650&siteId=291194637