How to uninstall Redis in Linux?

青灯夜游
Release: 2019-06-18 10:51:33
Original
21744 people have browsed it

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
Copy after login

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
Copy after login

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
Copy after login

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-*
Copy after login

Delete file:

rm -rf /usr/local/bin/redis-*
Copy after login

How to uninstall Redis in Linux?

4. Delete the decompressed file directory and all files

rm -rf redis-3.2.1
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!