你对我不好就别怪隔壁小明
在redis中设置最大占用内存的方法:1.启动redis服务;2.登录redis数据库;3.使用maxmemory语句设置;具体步骤如下:1.首先,在命令行中启动redis服务;serviceredis