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>
3. Just restart ubuntu.
<p>sudo apt-get autoremove --purge redis-server #卸载redis</p><p><br></p>
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>
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!