需要编译器支持std=c11标准
请安装g++4.8.2以上,嗯呵,有一点不对,gcc4.8.2支持g11,但是还不能完全编译redis 下载gcc5.5.0 安装
接着下载,编译redis
wget http://download.redis.io/releases/redis-6.0.6.tar.gz
tar xzf redis-6.0.6.tar.gz
cd redis-6.0.6
make
试运行 make test
如果报如下错误
You need tcl 8.5 or newer in order to run the Redis test
安装tcl8.5即可
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/
cd /usr/local/tcl8.6.1/unix/
sudo ./configure
sudo make
sudo make install