linux中安装redis操作-非源码安装

1)安装redis-server
apt-get update 更新操作

apt-get install redis-server 安装redis服务

find / -name redis.conf 查找redis.conf所在路径,并把daemonize设置为yes,一般是:/etc/redis/redis.conf

redis-server /etc/redis/redis.conf 启动redis服务,/etc/redis/redis.conf为配置文件redis.conf的路径

redis-cli 客户端连接

posted @ 2021-02-02 22:56  PHOME_明  阅读(170)  评论(0)    收藏  举报