知识&技术&梦想 知识&技术&梦想

ubuntu安装redis

root@xymiao:/# apt-cache search redis root@xymiao:/# apt-get install redis-server a、redis配置文件:/etc/redis/redis.conf b、redis服务路径:/etc/init.d/redis-server 2、启动redis root@xymiao:/# cd /etc/init.d root@xymiao:/# redis-server & 注:要先进入"/etc/init.d"目录,再执行"redis-server &"命令启动redis 3、启动client客户端连接 root@xymiao:/# redis-cli 127.0.0.1:6379> set name ljq OK 127.0.0.1:6379> get name "ljq" 127.0.0.1:6379>
大纲