Home>Article>Operation and Maintenance> How to uninstall Redis in Linux?

How to uninstall Redis in Linux?

青灯夜游
青灯夜游 Original
2019-06-06 16:01:49 21566browse

How to uninstall Redis in Linux?

Steps to uninstall Redis on Linux:

1. Check whether reids is running. If it is running, close it first

Use the following command to view:

ps aux | grep redis

How to uninstall Redis in Linux?

As can be seen from the picture, redis-server is currently running on port 6379 and the process needs to be closed.

Use the following command to shut down the process

kill -9 PID

How to uninstall Redis in Linux?

2. Stop the redis-server service

Stop the redis-server service normally , use the reids client command:

redis-cli shutdown

How to uninstall Redis in Linux?

3. Delete the redis-related files in the /usr/local/lib directory:

View File:

ls /usr/local/bin/redis-*

Delete file:

rm -rf /usr/local/bin/redis-*

How to uninstall Redis in Linux?

4. Delete the decompressed file directory and all files

rm -rf redis-3.2.1

Uninstallation completed

Recommended related Linux video tutorials: "Linux Tutorial"

The above is the detailed content of How to uninstall Redis in Linux?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn