Home > Database > Redis > body text

How to uninstall redis on ubuntu

WBOY
Release: 2023-05-28 10:37:05
forward
3420 people have browsed it

1. Use the shortcut key [ctrl alt t] to open the ubuntu terminal.

2. Enter the following command to uninstall redis.

<p>sudo apt-get autoremove --purge redis-server #卸载redis</p><p><br></p>
Copy after login
Copy after login

3. Just restart ubuntu.

<p>sudo apt-get autoremove --purge redis-server #卸载redis</p><p><br></p>
Copy after login
Copy after login

Related operation commands:

<p>sudo rm /usr/local/bin/redis-* #删除usr/local/bin/中所有redis相关的文件</p><p>sudo rm -r /etc/redis/ #删除配置目录和内容</p><p>sudo rm /var/log/redis_* #删除日志</p><p>sudo rm -r /var/lib/redis/ #删除数据目录和内容</p><p>sudo rm /etc/init.d/redis_* #删除初始化脚本</p><p>sudo rm /var/run/redis_* #删除现有的redis PID文件</p><p><br></p>
Copy after login

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

Related labels:
source:yisu.com
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