1

I installed Redis a long time ago on my CentOS 7 DirectAdmin VPS. Now I want to remove the current version (3.0.5) and install the latest Redis 3.2.5.

How can I remove the current version?

I installed a time ago using the following commands:

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

tar xzf redis-3.0.5.tar.gz

cd redis-3.0.5

make

make test

make install

cd utils

chmod +x install_server.sh

./install_server.sh

2 Answers 2

6

First, i suggest you to use your distros package instead of compiling software, this way you can upgrade and get security updates for free.

Back to your question, assuming you left the defaults during ./install_server.sh, first stop redis:

/etc/init.d/redis_6379 stop

Delete redis's install:

rm -fr etc/redis/ /var/log/redis_* /etc/init.d/redis_6379 /usr/local/bin/redis*

Delete redis's data too:

rm -fr /var/lib/redis/6379

Done.

2
  • Thanks for your help! I am trying to stop redis using the first command. But than I get the following error Stopping ... (error) NOAUTH Authentication required. Waiting for Redis to shutdown ... Waiting for Redis to shutdown ... Waiting for Redis to shutdown ... It keeps waiting. What am I missing?
    – JGeer
    Nov 30, 2016 at 13:34
  • 1
    For the time being you can killall -9 redis-server - this PR should resolve the issue in the fullness of time: github.com/antirez/redis/pull/2069 Nov 30, 2016 at 13:50
2

This worked for me for centos 7

sudo yum remove redis

you can have a look here instead of using redis labs ,I used redis

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .