REDIS 6.0安装

先卸载之前安装的redis服务
shell> ps -ef | grep redis
shell> kill -9 xxx
shell> rm -rf /usr/local/bin/redis-*
下载并解压,然后安装
shell> wget http://download.redis.io/releases/redis-6.0.1.tar.gz
shell> sudo tar -zxvf redis-6.0.1.tar.gz -C /usr/local
shell> cd /usr/local/redis-6.0.1
shell> sudo make
shell> sudo make test
shell> sudo make install

Error: Executing test client: couldn’t execute “src/redis-benchmark”: no such file or directory.[压测时,找不到可执行文件]

Fix: 清除上次的make命令所产生的object文件(后缀为“.o”的文件)及可执行文件【等同于make clean】 同时也将configure生成的文件全部删除掉,包括Makefile文件

shell> sudo make distclean
shell> sudo make

设置redis.conf里的io-threads-do-reads yes

设置redis.conf里的io-threads 【线城数量,CPU核数*2/3】