$ sudo cp redis.conf /etc/redis.conf
$ sudo vi /etc/redis.conf
编辑/etc/redis.conf ,修改daemaon no 为daemaon yes ,以守护进程方式启动进程。
$cd utils$sudo ./install_server.sh
安装默认属性设置Please select the redis port for this instance: [6379]Selecting default: 6379Please select the redis config file name [/etc/redis/6379.conf]Selected default - /etc/redis/6379.confPlease select the redis log file name [/var/log/redis_6379.log]Selected default - /var/log/redis_6379.logPlease select the data directory for this instance [/var/lib/redis/6379]
Selected default - /var/lib/redis/6379Please select the redis executable path [] /usr/local/bin/redis-server (这里输入刚才copy的路径) $ redis-server /etc/redis.conf & //启动redis
FAQ: make test报错:
You need tcl 8.5 or newer in order to run the Redis testmake: *** [test] Error 1解决办法:安装tcl