转载:http://www.cnblogs.com/hd3013779515/p/6914824.html
http://www.cnblogs.com/it-cen/p/4295984.html(详细)
一。使用get进行安装wget http://download.redis.io/releases/redis-3.2.9.tar.gz tar -xzvf redis-3.2.9.tar.gz yum install gcccd redis-3.2.9 make (制作)进入目录执行./src/redis-server进行配置后台启动:vim /usr/local/redis(你的redis目录)/etc/redis.conf 将daemonize的值修改为yes客户端连接:/usr/local/redis/bin/redis-cli停止redis实例:pkill redis-server设置开机自动启动:vim /etc/rc.local 加入:/usr/local/bin/redis-server /usr/local/redis/tec/redis-conf连接自己的redis:redis目录/redis-cli连接别人的redis:redis目录/redis-cli -c -h 192.168.0.101(地址) -p 6379
时间: 2024-12-20 01:21:22