1. 编译dep及redis
编译dep
bigdata@ubuntu1:~/run/redis/deps$ bigdata@ubuntu1:~/run/redis/deps$ make geohash-int bigdata@ubuntu1:~/run/redis/deps$ make hiredis bigdata@ubuntu1:~/run/redis/deps$ make jemalloc bigdata@ubuntu1:~/run/redis/deps$ make linenoise bigdata@ubuntu1:~/run/redis/deps$ make lua
编译redis
bigdata@ubuntu1:~/run/redis$ make编译过程中,若有缺少的包,请自行安装。
2. 启动redis
bigdata@ubuntu1:~/run/redis/src$ ./redis-server &
测试
bigdata@ubuntu1:~/run/redis/src$ ./redis-cli 127.0.0.1:6379> set foo bar OK 127.0.0.1:6379> get foo "bar" 127.0.0.1:6379>