Ubuntu(20.04)下安装Redis:
安装命令:
sudo apt-get install redis-server
卸载命令:
sudo apt-get purge --auto-remove redis-server
Redis安装好后会自动启动,查看Redis状态:
ps aux|grep redis
手动启动Redis:
sudo service redis-server start
手动关闭Redis:
sudo service redis-server stop
操作Redis: