原文及更多文章请见个人博客:http://heartlifes.com
进入redis的deps目录
此时报错:
collect2: ld 返回 1需要安装最新的tcl
wget http://jaist.dl.sourceforge.net/project/tcl/Tcl/8.6.4/tcl8.6.4-src.tar.gz ./configure make make test make install然后,做以下两步: 在src/Makefile开头加 CFLAGS= -march=x86-64 编辑src/.make-settings里的OPT,改为OPT=-O2 -march=x86-64
重新编译redis:
make make test make install修改密码:requirepass xxx
转载于:https://www.cnblogs.com/heartlifes/p/6971004.html