1.下载
打开官网:https://redis.io/
Download---Download4.0.9,下载最新稳定版,这里是4.0.9
2.安装
下载完成后,打开命令行工具,执行解压命令
tar zxvf redis-4.0.9.tar.gz
或
tar xvf redis-4.0.9.tar
将解压后文件夹放到/usr/local
mv redis-4.0.9 /usr/local/
切换到相应目录
打开官网:https://redis.io/
Download---Download4.0.9,下载最新稳定版,这里是4.0.9
下载完成后,打开命令行工具,执行解压命令
tar zxvf redis-4.0.9.tar.gz
或
tar xvf redis-4.0.9.tar
将解压后文件夹放到/usr/local
mv redis-4.0.9 /usr/local/
切换到相应目录
cd /usr/local/redis-4.0.9/
编译测试
sudo make test
”make“命令需要使用命令行开发工具,所以要先安装该工具
编译安装
sudo make install
启动Redis
redis-server
以下是安装redis的全部命令:
weixiangmings-iMac:Downloads weixiangming$ tar xvf redis-4.0.9.tar
x redis-4.0.9/
x redis-4.0.9/.gitignore
x redis-4.0.9/00-RELEASENOTES
x redis-4.0.9/BUGS
x redis-4.0.9/CONTRIBUTING
x redis-4.0.9/COPYING
x redis-4.0.9/INSTALL
x redis-4.0.9/MANIFESTO
x redis-4.0.9/Makefile
x redis-4.0.9/README.md
x redis-4.0.9/deps/
x redis-4.0.9/deps/Makefile
x redis-4.0.9/deps/README.md
x redis-4.0.9/deps/hiredis/
x redis-4.0.9/deps/hiredis/.gitignore
x redis-4.0.9/deps/hiredis/.travis.yml
x redis-4.0.9/deps/hiredis/CHANGELOG.md
x redis-4.0.9/deps/hiredis/COPYING
x redis-4.0.9/deps/hiredis/Makefile
x redis-4.0.9/deps/hiredis/README.md
x redis-4.0.9/deps/hiredis/adapters/
x redis-4.0.9/deps/hiredis/adapters/ae.h
x redis-4.0.9/deps/hiredis/adapters/glib.h
x redis-4.0.9/deps/hiredis/adapters/ivykis.h
x redis-4.0.9/deps/hiredis/adapters/libev.h
x redis-4.0.9/deps/hiredis/adapters/libevent.h
x redis-4.0.9/deps/hiredis/adapters/libuv.h
x redis-4.0.9/deps/hiredis/adapters/macosx.h
x redis-4.0.9/deps/hiredis/adapters/qt.h
x redis-4.0.9/deps/hiredis/appveyor.yml
x redis-4.0.9/deps/hiredis/async.c
x redis-4.0.9/deps/hiredis/async.h
x redis-4.0.9/deps/hiredis/dict.c
x redis-4.0.9/deps/hiredis/dict.h
x redis-4.0.9/deps/hiredis/examples/
x redis-4.0.9/deps/hiredis/examples/example-ae.c
x redis-4.0.9/deps/hiredis/examples/example-glib.c
x redis-4.0.9/deps/hiredis/examples/example-ivykis.c
x redis-4.0.9/deps/hiredis/examples/example-libev.c
x redis-4.0.9/deps/hiredis/examples/example-libevent.c
x redis-4.0.9/deps/hiredis/examples/example-libuv.c
x redis-4.0.9/deps/hiredis/examples/example-macosx.c
x redis-4.0.9/deps/hiredis/examples/example-qt.cpp
x redis-4.0.9/deps/hiredis/examples/example-qt.h
x redis-4.0.9/deps/hiredis/examples/example.c
x redis-4.0.9/deps/hiredis/fmacros.h
x redis-4.0.9/deps/hiredis/hiredis.c
x redis-4.0.9/deps/hiredis/hiredis.h
x redis-4.0.9/deps/hiredis/net.c
x redis-4.0.9/deps/hiredis/net.h
x redis-4.0.9/deps/hiredis/read.c
x redis-4.0.9/deps/hiredis/read.h
x redis-4.0.9/deps/hiredis/sds.c
x redis-4.0.9/deps/hiredis/sds.h
x redis-4.0.9/deps/hiredis/sdsalloc.h
x redis-4.0.9/deps/hiredis/test.c
x redis-4.0.9/deps/hiredis/win32.h
x redis-4.0.9/deps/jemalloc/
x redis-4.0.9/deps/jemalloc/.autom4te.cfg
x redis-4.0.9/deps/jemalloc/.gitattributes
x redis-4.0.9/deps/jemalloc/.gitignore
x redis-4.0.9/deps/jemalloc/COPYING
x redis-4.0.9/deps/jemalloc/ChangeLog
x redis-4.0.9/deps/jemalloc/INSTALL
x redis-4.0.9/deps/jemalloc/Makefile.in
x redis-4.0.9/deps/jemalloc/README
x redis-4.0.9/deps/jemalloc/VERSION
x redis-4.0.9/deps/jemalloc/autogen.sh
x redis-4.0.9/deps/jemalloc/bin/
x redis-4.0.9/deps/jemalloc/bin/jemalloc-config.in
x redis-4.0.9/deps/jemalloc/bin/jemalloc.sh.in
x redis-4.0.9/deps/jemalloc/bin/jeprof.in
x redis-4.0.9/deps/jemalloc/config.guess
x redis-4.0.9/deps/jemalloc/config.stamp.in
x redis-4.0.9/deps/jemalloc/config.sub
x redis-4.0.9/deps/jemalloc/configure
x redis-4.0.9/deps/jemalloc/configure.ac
x redis-4.0.9/deps/jemalloc/coverage.sh
x redis-4.0.9/deps/jemalloc/doc/
x redis-4.0.9/deps/jemalloc/doc/html.xsl.in
x redis-4.0.9/deps/jemalloc/doc/jemalloc.3
x redis-4.0.9/deps/jemalloc/doc/jemalloc.html
x redis-4.0.9/deps/jemalloc/doc/jemalloc.xml.in
x redis-4.0.9/deps/jemalloc/doc/manpages.xsl.in
x redis-4.0.9/deps/jemalloc/doc/stylesheet.xsl
x redis-4.0.9/deps/jemalloc/include/
x redis-4.0.9/deps/jemalloc/include/jemalloc/
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/arena.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/atomic.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/base.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/bitmap.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/chunk.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/chunk_dss.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/chunk_mmap.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/ckh.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/ctl.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/extent.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/hash.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/huge.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h.in
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_macros.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/mb.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/mutex.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/pages.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/private_namespace.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/private_symbols.txt
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/private_unnamespace.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/prng.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/prof.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/public_namespace.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/public_unnamespace.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/ql.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/qr.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/quarantine.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/rb.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/rtree.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/size_classes.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/stats.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/tcache.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/tsd.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/util.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/internal/valgrind.h
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc_defs.h.in
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc_macros.h.in
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc_mangle.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc_protos.h.in
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc_rename.sh
x redis-4.0.9/deps/jemalloc/include/jemalloc/jemalloc_typedefs.h.in
x redis-4.0.9/deps/jemalloc/include/msvc_compat/
x redis-4.0.9/deps/jemalloc/include/msvc_compat/C99/
x redis-4.0.9/deps/jemalloc/include/msvc_compat/C99/stdbool.h
x redis-4.0.9/deps/jemalloc/include/msvc_compat/C99/stdint.h
x redis-4.0.9/deps/jemalloc/include/msvc_compat/strings.h
x redis-4.0.9/deps/jemalloc/include/msvc_compat/windows_extra.h
x redis-4.0.9/deps/jemalloc/install-sh
x redis-4.0.9/deps/jemalloc/jemalloc.pc.in
x redis-4.0.9/deps/jemalloc/src/
x redis-4.0.9/deps/jemalloc/src/arena.c
x redis-4.0.9/deps/jemalloc/src/atomic.c
x redis-4.0.9/deps/jemalloc/src/base.c
x redis-4.0.9/deps/jemalloc/src/bitmap.c
x redis-4.0.9/deps/jemalloc/src/chunk.c
x redis-4.0.9/deps/jemalloc/src/chunk_dss.c
x redis-4.0.9/deps/jemalloc/src/chunk_mmap.c
x redis-4.0.9/deps/jemalloc/src/ckh.c
x redis-4.0.9/deps/jemalloc/src/ctl.c
x redis-4.0.9/deps/jemalloc/src/extent.c
x redis-4.0.9/deps/jemalloc/src/hash.c
x redis-4.0.9/deps/jemalloc/src/huge.c
x redis-4.0.9/deps/jemalloc/src/jemalloc.c
x redis-4.0.9/deps/jemalloc/src/mb.c
x redis-4.0.9/deps/jemalloc/src/mutex.c
x redis-4.0.9/deps/jemalloc/src/pages.c
x redis-4.0.9/deps/jemalloc/src/prof.c
x redis-4.0.9/deps/jemalloc/src/quarantine.c
x redis-4.0.9/deps/jemalloc/src/rtree.c
x redis-4.0.9/deps/jemalloc/src/stats.c
x redis-4.0.9/deps/jemalloc/src/tcache.c
x redis-4.0.9/deps/jemalloc/src/tsd.c
x redis-4.0.9/deps/jemalloc/src/util.c
x redis-4.0.9/deps/jemalloc/src/valgrind.c
x redis-4.0.9/deps/jemalloc/src/zone.c
x redis-4.0.9/deps/jemalloc/test/
x redis-4.0.9/deps/jemalloc/test/include/
x redis-4.0.9/deps/jemalloc/test/include/test/
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-alti.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params11213.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params1279.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params132049.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params19937.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params216091.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params2281.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params4253.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params44497.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params607.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-params86243.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT-sse2.h
x redis-4.0.9/deps/jemalloc/test/include/test/SFMT.h
x redis-4.0.9/deps/jemalloc/test/include/test/btalloc.h
x redis-4.0.9/deps/jemalloc/test/include/test/jemalloc_test.h.in
x redis-4.0.9/deps/jemalloc/test/include/test/jemalloc_test_defs.h.in
x redis-4.0.9/deps/jemalloc/test/include/test/math.h
x redis-4.0.9/deps/jemalloc/test/include/test/mq.h
x redis-4.0.9/deps/jemalloc/test/include/test/mtx.h
x redis-4.0.9/deps/jemalloc/test/include/test/test.h
x redis-4.0.9/deps/jemalloc/test/include/test/thd.h
x redis-4.0.9/deps/jemalloc/test/include/test/timer.h
x redis-4.0.9/deps/jemalloc/test/integration/
x redis-4.0.9/deps/jemalloc/test/integration/MALLOCX_ARENA.c
x redis-4.0.9/deps/jemalloc/test/integration/aligned_alloc.c
x redis-4.0.9/deps/jemalloc/test/integration/allocated.c
x redis-4.0.9/deps/jemalloc/test/integration/chunk.c
x redis-4.0.9/deps/jemalloc/test/integration/mallocx.c
x redis-4.0.9/deps/jemalloc/test/integration/overflow.c
x redis-4.0.9/deps/jemalloc/test/integration/posix_memalign.c
x redis-4.0.9/deps/jemalloc/test/integration/rallocx.c
x redis-4.0.9/deps/jemalloc/test/integration/sdallocx.c
x redis-4.0.9/deps/jemalloc/test/integration/thread_arena.c
x redis-4.0.9/deps/jemalloc/test/integration/thread_tcache_enabled.c
x redis-4.0.9/deps/jemalloc/test/integration/xallocx.c
x redis-4.0.9/deps/jemalloc/test/src/
x redis-4.0.9/deps/jemalloc/test/src/SFMT.c
x redis-4.0.9/deps/jemalloc/test/src/btalloc.c
x redis-4.0.9/deps/jemalloc/test/src/btalloc_0.c
x redis-4.0.9/deps/jemalloc/test/src/btalloc_1.c
x redis-4.0.9/deps/jemalloc/test/src/math.c
x redis-4.0.9/deps/jemalloc/test/src/mq.c
x redis-4.0.9/deps/jemalloc/test/src/mtx.c
x redis-4.0.9/deps/jemalloc/test/src/test.c
x redis-4.0.9/deps/jemalloc/test/src/thd.c
x redis-4.0.9/deps/jemalloc/test/src/timer.c
x redis-4.0.9/deps/jemalloc/test/stress/
x redis-4.0.9/deps/jemalloc/test/stress/microbench.c
x redis-4.0.9/deps/jemalloc/test/test.sh.in
x redis-4.0.9/deps/jemalloc/test/unit/
x redis-4.0.9/deps/jemalloc/test/unit/SFMT.c
x redis-4.0.9/deps/jemalloc/test/unit/atomic.c
x redis-4.0.9/deps/jemalloc/test/unit/bitmap.c
x redis-4.0.9/deps/jemalloc/test/unit/ckh.c
x redis-4.0.9/deps/jemalloc/test/unit/hash.c
x redis-4.0.9/deps/jemalloc/test/unit/junk.c
x redis-4.0.9/deps/jemalloc/test/unit/junk_alloc.c
x redis-4.0.9/deps/jemalloc/test/unit/junk_free.c
x redis-4.0.9/deps/jemalloc/test/unit/lg_chunk.c
x redis-4.0.9/deps/jemalloc/test/unit/mallctl.c
x redis-4.0.9/deps/jemalloc/test/unit/math.c
x redis-4.0.9/deps/jemalloc/test/unit/mq.c
x redis-4.0.9/deps/jemalloc/test/unit/mtx.c
x redis-4.0.9/deps/jemalloc/test/unit/prof_accum.c
x redis-4.0.9/deps/jemalloc/test/unit/prof_active.c
x redis-4.0.9/deps/jemalloc/test/unit/prof_gdump.c
x redis-4.0.9/deps/jemalloc/test/unit/prof_idump.c
x redis-4.0.9/deps/jemalloc/test/unit/prof_reset.c
x redis-4.0.9/deps/jemalloc/test/unit/prof_thread_name.c
x redis-4.0.9/deps/jemalloc/test/unit/ql.c
x redis-4.0.9/deps/jemalloc/test/unit/qr.c
x redis-4.0.9/deps/jemalloc/test/unit/quarantine.c
x redis-4.0.9/deps/jemalloc/test/unit/rb.c
x redis-4.0.9/deps/jemalloc/test/unit/rtree.c
x redis-4.0.9/deps/jemalloc/test/unit/size_classes.c
x redis-4.0.9/deps/jemalloc/test/unit/stats.c
x redis-4.0.9/deps/jemalloc/test/unit/tsd.c
x redis-4.0.9/deps/jemalloc/test/unit/util.c
x redis-4.0.9/deps/jemalloc/test/unit/zero.c
x redis-4.0.9/deps/linenoise/
x redis-4.0.9/deps/linenoise/.gitignore
x redis-4.0.9/deps/linenoise/Makefile
x redis-4.0.9/deps/linenoise/README.markdown
x redis-4.0.9/deps/linenoise/example.c
x redis-4.0.9/deps/linenoise/linenoise.c
x redis-4.0.9/deps/linenoise/linenoise.h
x redis-4.0.9/deps/lua/
x redis-4.0.9/deps/lua/COPYRIGHT
x redis-4.0.9/deps/lua/HISTORY
x redis-4.0.9/deps/lua/INSTALL
x redis-4.0.9/deps/lua/Makefile
x redis-4.0.9/deps/lua/README
x redis-4.0.9/deps/lua/doc/
x redis-4.0.9/deps/lua/doc/contents.html
x redis-4.0.9/deps/lua/doc/cover.png
x redis-4.0.9/deps/lua/doc/logo.gif
x redis-4.0.9/deps/lua/doc/lua.1
x redis-4.0.9/deps/lua/doc/lua.css
x redis-4.0.9/deps/lua/doc/lua.html
x redis-4.0.9/deps/lua/doc/luac.1
x redis-4.0.9/deps/lua/doc/luac.html
x redis-4.0.9/deps/lua/doc/manual.css
x redis-4.0.9/deps/lua/doc/manual.html
x redis-4.0.9/deps/lua/doc/readme.html
x redis-4.0.9/deps/lua/etc/
x redis-4.0.9/deps/lua/etc/Makefile
x redis-4.0.9/deps/lua/etc/README
x redis-4.0.9/deps/lua/etc/all.c
x redis-4.0.9/deps/lua/etc/lua.hpp
x redis-4.0.9/deps/lua/etc/lua.ico
x redis-4.0.9/deps/lua/etc/lua.pc
x redis-4.0.9/deps/lua/etc/luavs.bat
x redis-4.0.9/deps/lua/etc/min.c
x redis-4.0.9/deps/lua/etc/noparser.c
x redis-4.0.9/deps/lua/etc/strict.lua
x redis-4.0.9/deps/lua/src/
x redis-4.0.9/deps/lua/src/Makefile
x redis-4.0.9/deps/lua/src/fpconv.c
x redis-4.0.9/deps/lua/src/fpconv.h
x redis-4.0.9/deps/lua/src/lapi.c
x redis-4.0.9/deps/lua/src/lapi.h
x redis-4.0.9/deps/lua/src/lauxlib.c
x redis-4.0.9/deps/lua/src/lauxlib.h
x redis-4.0.9/deps/lua/src/lbaselib.c
x redis-4.0.9/deps/lua/src/lcode.c
x redis-4.0.9/deps/lua/src/lcode.h
x redis-4.0.9/deps/lua/src/ldblib.c
x redis-4.0.9/deps/lua/src/ldebug.c
x redis-4.0.9/deps/lua/src/ldebug.h
x redis-4.0.9/deps/lua/src/ldo.c
x redis-4.0.9/deps/lua/src/ldo.h
x redis-4.0.9/deps/lua/src/ldump.c
x redis-4.0.9/deps/lua/src/lfunc.c
x redis-4.0.9/deps/lua/src/lfunc.h
x redis-4.0.9/deps/lua/src/lgc.c
x redis-4.0.9/deps/lua/src/lgc.h
x redis-4.0.9/deps/lua/src/linit.c
x redis-4.0.9/deps/lua/src/liolib.c
x redis-4.0.9/deps/lua/src/llex.c
x redis-4.0.9/deps/lua/src/llex.h
x redis-4.0.9/deps/lua/src/llimits.h
x redis-4.0.9/deps/lua/src/lmathlib.c
x redis-4.0.9/deps/lua/src/lmem.c
x redis-4.0.9/deps/lua/src/lmem.h
x redis-4.0.9/deps/lua/src/loadlib.c
x redis-4.0.9/deps/lua/src/lobject.c
x redis-4.0.9/deps/lua/src/lobject.h
x redis-4.0.9/deps/lua/src/lopcodes.c
x redis-4.0.9/deps/lua/src/lopcodes.h
x redis-4.0.9/deps/lua/src/loslib.c
x redis-4.0.9/deps/lua/src/lparser.c
x redis-4.0.9/deps/lua/src/lparser.h
x redis-4.0.9/deps/lua/src/lstate.c
x redis-4.0.9/deps/lua/src/lstate.h
x redis-4.0.9/deps/lua/src/lstring.c
x redis-4.0.9/deps/lua/src/lstring.h
x redis-4.0.9/deps/lua/src/lstrlib.c
x redis-4.0.9/deps/lua/src/ltable.c
x redis-4.0.9/deps/lua/src/ltable.h
x redis-4.0.9/deps/lua/src/ltablib.c
x redis-4.0.9/deps/lua/src/ltm.c
x redis-4.0.9/deps/lua/src/ltm.h
x redis-4.0.9/deps/lua/src/lua.c
x redis-4.0.9/deps/lua/src/lua.h
x redis-4.0.9/deps/lua/src/lua_bit.c
x redis-4.0.9/deps/lua/src/lua_cjson.c
x redis-4.0.9/deps/lua/src/lua_cmsgpack.c
x redis-4.0.9/deps/lua/src/lua_struct.c
x redis-4.0.9/deps/lua/src/luac.c
x redis-4.0.9/deps/lua/src/luaconf.h
x redis-4.0.9/deps/lua/src/lualib.h
x redis-4.0.9/deps/lua/src/lundump.c
x redis-4.0.9/deps/lua/src/lundump.h
x redis-4.0.9/deps/lua/src/lvm.c
x redis-4.0.9/deps/lua/src/lvm.h
x redis-4.0.9/deps/lua/src/lzio.c
x redis-4.0.9/deps/lua/src/lzio.h
x redis-4.0.9/deps/lua/src/print.c
x redis-4.0.9/deps/lua/src/strbuf.c
x redis-4.0.9/deps/lua/src/strbuf.h
x redis-4.0.9/deps/lua/test/
x redis-4.0.9/deps/lua/test/README
x redis-4.0.9/deps/lua/test/bisect.lua
x redis-4.0.9/deps/lua/test/cf.lua
x redis-4.0.9/deps/lua/test/echo.lua
x redis-4.0.9/deps/lua/test/env.lua
x redis-4.0.9/deps/lua/test/factorial.lua
x redis-4.0.9/deps/lua/test/fib.lua
x redis-4.0.9/deps/lua/test/fibfor.lua
x redis-4.0.9/deps/lua/test/globals.lua
x redis-4.0.9/deps/lua/test/hello.lua
x redis-4.0.9/deps/lua/test/life.lua
x redis-4.0.9/deps/lua/test/luac.lua
x redis-4.0.9/deps/lua/test/printf.lua
x redis-4.0.9/deps/lua/test/readonly.lua
x redis-4.0.9/deps/lua/test/sieve.lua
x redis-4.0.9/deps/lua/test/sort.lua
x redis-4.0.9/deps/lua/test/table.lua
x redis-4.0.9/deps/lua/test/trace-calls.lua
x redis-4.0.9/deps/lua/test/trace-globals.lua
x redis-4.0.9/deps/lua/test/xd.lua
x redis-4.0.9/deps/update-jemalloc.sh
x redis-4.0.9/redis.conf
x redis-4.0.9/runtest
x redis-4.0.9/runtest-cluster
x redis-4.0.9/runtest-sentinel
x redis-4.0.9/sentinel.conf
x redis-4.0.9/src/
x redis-4.0.9/src/.gitignore
x redis-4.0.9/src/Makefile
x redis-4.0.9/src/adlist.c
x redis-4.0.9/src/adlist.h
x redis-4.0.9/src/ae.c
x redis-4.0.9/src/ae.h
x redis-4.0.9/src/ae_epoll.c
x redis-4.0.9/src/ae_evport.c
x redis-4.0.9/src/ae_kqueue.c
x redis-4.0.9/src/ae_select.c
x redis-4.0.9/src/anet.c
x redis-4.0.9/src/anet.h
x redis-4.0.9/src/aof.c
x redis-4.0.9/src/asciilogo.h
x redis-4.0.9/src/atomicvar.h
x redis-4.0.9/src/bio.c
x redis-4.0.9/src/bio.h
x redis-4.0.9/src/bitops.c
x redis-4.0.9/src/blocked.c
x redis-4.0.9/src/childinfo.c
x redis-4.0.9/src/cluster.c
x redis-4.0.9/src/cluster.h
x redis-4.0.9/src/config.c
x redis-4.0.9/src/config.h
x redis-4.0.9/src/crc16.c
x redis-4.0.9/src/crc64.c
x redis-4.0.9/src/crc64.h
x redis-4.0.9/src/db.c
x redis-4.0.9/src/debug.c
x redis-4.0.9/src/debugmacro.h
x redis-4.0.9/src/defrag.c
x redis-4.0.9/src/dict.c
x redis-4.0.9/src/dict.h
x redis-4.0.9/src/endianconv.c
x redis-4.0.9/src/endianconv.h
x redis-4.0.9/src/evict.c
x redis-4.0.9/src/expire.c
x redis-4.0.9/src/fmacros.h
x redis-4.0.9/src/geo.c
x redis-4.0.9/src/geo.h
x redis-4.0.9/src/geohash.c
x redis-4.0.9/src/geohash.h
x redis-4.0.9/src/geohash_helper.c
x redis-4.0.9/src/geohash_helper.h
x redis-4.0.9/src/help.h
x redis-4.0.9/src/hyperloglog.c
x redis-4.0.9/src/intset.c
x redis-4.0.9/src/intset.h
x redis-4.0.9/src/latency.c
x redis-4.0.9/src/latency.h
x redis-4.0.9/src/lazyfree.c
x redis-4.0.9/src/lzf.h
x redis-4.0.9/src/lzfP.h
x redis-4.0.9/src/lzf_c.c
x redis-4.0.9/src/lzf_d.c
x redis-4.0.9/src/memtest.c
x redis-4.0.9/src/mkreleasehdr.sh
x redis-4.0.9/src/module.c
x redis-4.0.9/src/modules/
x redis-4.0.9/src/modules/.gitignore
x redis-4.0.9/src/modules/Makefile
x redis-4.0.9/src/modules/gendoc.rb
x redis-4.0.9/src/modules/helloblock.c
x redis-4.0.9/src/modules/hellotype.c
x redis-4.0.9/src/modules/helloworld.c
x redis-4.0.9/src/modules/testmodule.c
x redis-4.0.9/src/multi.c
x redis-4.0.9/src/networking.c
x redis-4.0.9/src/notify.c
x redis-4.0.9/src/object.c
x redis-4.0.9/src/pqsort.c
x redis-4.0.9/src/pqsort.h
x redis-4.0.9/src/pubsub.c
x redis-4.0.9/src/quicklist.c
x redis-4.0.9/src/quicklist.h
x redis-4.0.9/src/rand.c
x redis-4.0.9/src/rand.h
x redis-4.0.9/src/rax.c
x redis-4.0.9/src/rax.h
x redis-4.0.9/src/rax_malloc.h
x redis-4.0.9/src/rdb.c
x redis-4.0.9/src/rdb.h
x redis-4.0.9/src/redis-benchmark.c
x redis-4.0.9/src/redis-check-aof.c
x redis-4.0.9/src/redis-check-rdb.c
x redis-4.0.9/src/redis-cli.c
x redis-4.0.9/src/redis-trib.rb
x redis-4.0.9/src/redisassert.h
x redis-4.0.9/src/redismodule.h
x redis-4.0.9/src/release.c
x redis-4.0.9/src/replication.c
x redis-4.0.9/src/rio.c
x redis-4.0.9/src/rio.h
x redis-4.0.9/src/scripting.c
x redis-4.0.9/src/sds.c
x redis-4.0.9/src/sds.h
x redis-4.0.9/src/sdsalloc.h
x redis-4.0.9/src/sentinel.c
x redis-4.0.9/src/server.c
x redis-4.0.9/src/server.h
x redis-4.0.9/src/setproctitle.c
x redis-4.0.9/src/sha1.c
x redis-4.0.9/src/sha1.h
x redis-4.0.9/src/siphash.c
x redis-4.0.9/src/slowlog.c
x redis-4.0.9/src/slowlog.h
x redis-4.0.9/src/solarisfixes.h
x redis-4.0.9/src/sort.c
x redis-4.0.9/src/sparkline.c
x redis-4.0.9/src/sparkline.h
x redis-4.0.9/src/syncio.c
x redis-4.0.9/src/t_hash.c
x redis-4.0.9/src/t_list.c
x redis-4.0.9/src/t_set.c
x redis-4.0.9/src/t_string.c
x redis-4.0.9/src/t_zset.c
x redis-4.0.9/src/testhelp.h
x redis-4.0.9/src/util.c
x redis-4.0.9/src/util.h
x redis-4.0.9/src/valgrind.sup
x redis-4.0.9/src/version.h
x redis-4.0.9/src/ziplist.c
x redis-4.0.9/src/ziplist.h
x redis-4.0.9/src/zipmap.c
x redis-4.0.9/src/zipmap.h
x redis-4.0.9/src/zmalloc.c
x redis-4.0.9/src/zmalloc.h
x redis-4.0.9/tests/
x redis-4.0.9/tests/assets/
x redis-4.0.9/tests/assets/default.conf
x redis-4.0.9/tests/assets/encodings.rdb
x redis-4.0.9/tests/assets/hash-zipmap.rdb
x redis-4.0.9/tests/cluster/
x redis-4.0.9/tests/cluster/cluster.tcl
x redis-4.0.9/tests/cluster/run.tcl
x redis-4.0.9/tests/cluster/tests/
x redis-4.0.9/tests/cluster/tests/00-base.tcl
x redis-4.0.9/tests/cluster/tests/01-faildet.tcl
x redis-4.0.9/tests/cluster/tests/02-failover.tcl
x redis-4.0.9/tests/cluster/tests/03-failover-loop.tcl
x redis-4.0.9/tests/cluster/tests/04-resharding.tcl
x redis-4.0.9/tests/cluster/tests/05-slave-selection.tcl
x redis-4.0.9/tests/cluster/tests/06-slave-stop-cond.tcl
x redis-4.0.9/tests/cluster/tests/07-replica-migration.tcl
x redis-4.0.9/tests/cluster/tests/08-update-msg.tcl
x redis-4.0.9/tests/cluster/tests/09-pubsub.tcl
x redis-4.0.9/tests/cluster/tests/10-manual-failover.tcl
x redis-4.0.9/tests/cluster/tests/11-manual-takeover.tcl
x redis-4.0.9/tests/cluster/tests/12-replica-migration-2.tcl
x redis-4.0.9/tests/cluster/tests/13-no-failover-option.tcl
x redis-4.0.9/tests/cluster/tests/helpers/
x redis-4.0.9/tests/cluster/tests/helpers/onlydots.tcl
x redis-4.0.9/tests/cluster/tests/includes/
x redis-4.0.9/tests/cluster/tests/includes/init-tests.tcl
x redis-4.0.9/tests/cluster/tmp/
x redis-4.0.9/tests/cluster/tmp/.gitignore
x redis-4.0.9/tests/helpers/
x redis-4.0.9/tests/helpers/bg_complex_data.tcl
x redis-4.0.9/tests/helpers/gen_write_load.tcl
x redis-4.0.9/tests/instances.tcl
x redis-4.0.9/tests/integration/
x redis-4.0.9/tests/integration/aof-race.tcl
x redis-4.0.9/tests/integration/aof.tcl
x redis-4.0.9/tests/integration/convert-zipmap-hash-on-load.tcl
x redis-4.0.9/tests/integration/logging.tcl
x redis-4.0.9/tests/integration/psync2-reg.tcl
x redis-4.0.9/tests/integration/psync2.tcl
x redis-4.0.9/tests/integration/rdb.tcl
x redis-4.0.9/tests/integration/redis-cli.tcl
x redis-4.0.9/tests/integration/replication-2.tcl
x redis-4.0.9/tests/integration/replication-3.tcl
x redis-4.0.9/tests/integration/replication-4.tcl
x redis-4.0.9/tests/integration/replication-psync.tcl
x redis-4.0.9/tests/integration/replication.tcl
x redis-4.0.9/tests/sentinel/
x redis-4.0.9/tests/sentinel/run.tcl
x redis-4.0.9/tests/sentinel/tests/
x redis-4.0.9/tests/sentinel/tests/00-base.tcl
x redis-4.0.9/tests/sentinel/tests/01-conf-update.tcl
x redis-4.0.9/tests/sentinel/tests/02-slaves-reconf.tcl
x redis-4.0.9/tests/sentinel/tests/03-runtime-reconf.tcl
x redis-4.0.9/tests/sentinel/tests/04-slave-selection.tcl
x redis-4.0.9/tests/sentinel/tests/05-manual.tcl
x redis-4.0.9/tests/sentinel/tests/06-ckquorum.tcl
x redis-4.0.9/tests/sentinel/tests/07-down-conditions.tcl
x redis-4.0.9/tests/sentinel/tests/includes/
x redis-4.0.9/tests/sentinel/tests/includes/init-tests.tcl
x redis-4.0.9/tests/sentinel/tmp/
x redis-4.0.9/tests/sentinel/tmp/.gitignore
x redis-4.0.9/tests/support/
x redis-4.0.9/tests/support/cluster.tcl
x redis-4.0.9/tests/support/redis.tcl
x redis-4.0.9/tests/support/server.tcl
x redis-4.0.9/tests/support/test.tcl
x redis-4.0.9/tests/support/tmpfile.tcl
x redis-4.0.9/tests/support/util.tcl
x redis-4.0.9/tests/test_helper.tcl
x redis-4.0.9/tests/tmp/
x redis-4.0.9/tests/tmp/.gitignore
x redis-4.0.9/tests/unit/
x redis-4.0.9/tests/unit/aofrw.tcl
x redis-4.0.9/tests/unit/auth.tcl
x redis-4.0.9/tests/unit/bitfield.tcl
x redis-4.0.9/tests/unit/bitops.tcl
x redis-4.0.9/tests/unit/dump.tcl
x redis-4.0.9/tests/unit/expire.tcl
x redis-4.0.9/tests/unit/geo.tcl
x redis-4.0.9/tests/unit/hyperloglog.tcl
x redis-4.0.9/tests/unit/introspection-2.tcl
x redis-4.0.9/tests/unit/introspection.tcl
x redis-4.0.9/tests/unit/keyspace.tcl
x redis-4.0.9/tests/unit/latency-monitor.tcl
x redis-4.0.9/tests/unit/lazyfree.tcl
x redis-4.0.9/tests/unit/limits.tcl
x redis-4.0.9/tests/unit/maxmemory.tcl
x redis-4.0.9/tests/unit/memefficiency.tcl
x redis-4.0.9/tests/unit/multi.tcl
x redis-4.0.9/tests/unit/obuf-limits.tcl
x redis-4.0.9/tests/unit/other.tcl
x redis-4.0.9/tests/unit/printver.tcl
x redis-4.0.9/tests/unit/protocol.tcl
x redis-4.0.9/tests/unit/pubsub.tcl
x redis-4.0.9/tests/unit/quit.tcl
x redis-4.0.9/tests/unit/scan.tcl
x redis-4.0.9/tests/unit/scripting.tcl
x redis-4.0.9/tests/unit/slowlog.tcl
x redis-4.0.9/tests/unit/sort.tcl
x redis-4.0.9/tests/unit/type/
x redis-4.0.9/tests/unit/type/hash.tcl
x redis-4.0.9/tests/unit/type/incr.tcl
x redis-4.0.9/tests/unit/type/list-2.tcl
x redis-4.0.9/tests/unit/type/list-3.tcl
x redis-4.0.9/tests/unit/type/list-common.tcl
x redis-4.0.9/tests/unit/type/list.tcl
x redis-4.0.9/tests/unit/type/set.tcl
x redis-4.0.9/tests/unit/type/string.tcl
x redis-4.0.9/tests/unit/type/zset.tcl
x redis-4.0.9/tests/unit/wait.tcl
x redis-4.0.9/utils/
x redis-4.0.9/utils/build-static-symbols.tcl
x redis-4.0.9/utils/cluster_fail_time.tcl
x redis-4.0.9/utils/corrupt_rdb.c
x redis-4.0.9/utils/create-cluster/
x redis-4.0.9/utils/create-cluster/.gitignore
x redis-4.0.9/utils/create-cluster/README
x redis-4.0.9/utils/create-cluster/create-cluster
x redis-4.0.9/utils/generate-command-help.rb
x redis-4.0.9/utils/graphs/
x redis-4.0.9/utils/graphs/commits-over-time/
x redis-4.0.9/utils/graphs/commits-over-time/README.md
x redis-4.0.9/utils/graphs/commits-over-time/genhtml.tcl
x redis-4.0.9/utils/hashtable/
x redis-4.0.9/utils/hashtable/README
x redis-4.0.9/utils/hashtable/rehashing.c
x redis-4.0.9/utils/hyperloglog/
x redis-4.0.9/utils/hyperloglog/.gitignore
x redis-4.0.9/utils/hyperloglog/hll-err.rb
x redis-4.0.9/utils/hyperloglog/hll-gnuplot-graph.rb
x redis-4.0.9/utils/install_server.sh
x redis-4.0.9/utils/lru/
x redis-4.0.9/utils/lru/README
x redis-4.0.9/utils/lru/lfu-simulation.c
x redis-4.0.9/utils/lru/test-lru.rb
x redis-4.0.9/utils/redis-copy.rb
x redis-4.0.9/utils/redis-sha1.rb
x redis-4.0.9/utils/redis_init_script
x redis-4.0.9/utils/redis_init_script.tpl
x redis-4.0.9/utils/releasetools/
x redis-4.0.9/utils/releasetools/01_create_tarball.sh
x redis-4.0.9/utils/releasetools/02_upload_tarball.sh
x redis-4.0.9/utils/releasetools/03_test_release.sh
x redis-4.0.9/utils/releasetools/04_release_hash.sh
x redis-4.0.9/utils/releasetools/changelog.tcl
x redis-4.0.9/utils/speed-regression.tcl
x redis-4.0.9/utils/whatisdoing.sh
我是手动将"redis-4.0.9"这个文件夹到/usr/local目录下的,所以这里没有使用“mv redis-4.0.9 /usr/local“这句命令
weixiangmings-iMac:~ weixiangming$ cd /usr/local/redis-4.0.9
weixiangmings-iMac:redis-4.0.9 weixiangming$ sudo make test
Password:
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
weixiangmings-iMac:redis-4.0.9 weixiangming$ sudo make install
cd src && /Library/Developer/CommandLineTools/usr/bin/make install
CC Makefile.dep
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html Makefile.dep dict-benchmark
(cd ../deps && /Library/Developer/CommandLineTools/usr/bin/make distclean)
(cd hiredis && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd linenoise && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd lua && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && /Library/Developer/CommandLineTools/usr/bin/make distclean) > /dev/null || true
(rm -f .make-*)
(rm -f .make-*)
echo STD=-std=c99 -pedantic -DREDIS_STATIC='' >> .make-settings
echo WARN=-Wall -W -Wno-missing-field-initializers >> .make-settings
echo OPT=-O2 >> .make-settings
echo MALLOC=libc >> .make-settings
echo CFLAGS= >> .make-settings
echo LDFLAGS= >> .make-settings
echo REDIS_CFLAGS= >> .make-settings
echo REDIS_LDFLAGS= >> .make-settings
echo PREV_FINAL_CFLAGS=-std=c99 -pedantic -DREDIS_STATIC='' -Wall -W -Wno-missing-field-initializers -O2 -g -ggdb -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src >> .make-settings
echo PREV_FINAL_LDFLAGS= -g -ggdb >> .make-settings
(cd ../deps && /Library/Developer/CommandLineTools/usr/bin/make hiredis linenoise lua)
(cd hiredis && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd linenoise && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd lua && /Library/Developer/CommandLineTools/usr/bin/make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && /Library/Developer/CommandLineTools/usr/bin/make distclean) > /dev/null || true
(rm -f .make-*)
(echo "" > .make-ldflags)
(echo "" > .make-cflags)
MAKE hiredis
cd hiredis && /Library/Developer/CommandLineTools/usr/bin/make static
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb hiredis.c
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb sds.c
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb async.c
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb read.c
ar rcs libhiredis.a net.o hiredis.o sds.o async.o read.o
MAKE linenoise
cd linenoise && /Library/Developer/CommandLineTools/usr/bin/make
cc -Wall -Os -g -c linenoise.c
MAKE lua
cd lua/src && /Library/Developer/CommandLineTools/usr/bin/make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' " MYLDFLAGS="" AR="ar rcu"
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lapi.o lapi.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lcode.o lcode.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldebug.o ldebug.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldo.o ldo.c
ldo.c:496:7: warning: unused variable 'c' [-Wunused-variable]
int c = luaZ_lookahead(p->z);
^
1 warning generated.
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldump.o ldump.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lfunc.o lfunc.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lgc.o lgc.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o llex.o llex.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lmem.o lmem.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lobject.o lobject.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lopcodes.o lopcodes.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lparser.o lparser.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lstate.o lstate.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lstring.o lstring.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ltable.o ltable.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ltm.o ltm.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lundump.o lundump.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lvm.o lvm.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lzio.o lzio.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o strbuf.o strbuf.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o fpconv.o fpconv.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lauxlib.o lauxlib.c
lauxlib.c:577:61: warning: while loop has empty body [-Wempty-body]
while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
^
lauxlib.c:577:61: note: put the semicolon on a separate line to silence this
warning
1 warning generated.
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lbaselib.o lbaselib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ldblib.o ldblib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o liolib.o liolib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lmathlib.o lmathlib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o loslib.o loslib.c
loslib.c:60:3: warning: 'tmpnam' is deprecated: This function is provided for
compatibility reasons only. Due to security concerns inherent in the
design of tmpnam(3), it is highly recommended that you use mkstemp(3)
instead. [-Wdeprecated-declarations]
lua_tmpnam(buff, err);
^
./luaconf.h:657:33: note: expanded from macro 'lua_tmpnam'
#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
^
/usr/include/stdio.h:186:1: note: 'tmpnam' has been explicitly marked deprecated
here
__deprecated_msg("This function is provided for compatibility reasons on...
^
/usr/include/sys/cdefs.h:180:48: note: expanded from macro '__deprecated_msg'
#define __deprecated_msg(_msg) __attribute__((deprecated(_msg)))
^
1 warning generated.
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o ltablib.o ltablib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lstrlib.o lstrlib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o loadlib.o loadlib.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o linit.o linit.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_cjson.o lua_cjson.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_struct.o lua_struct.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_cmsgpack.o lua_cmsgpack.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua_bit.o lua_bit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o strbuf.o fpconv.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o lua_cjson.o lua_struct.o lua_cmsgpack.o lua_bit.o # DLL needs all object files
ranlib liblua.a
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o lua.o lua.c
cc -o lua lua.o liblua.a -lm
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o luac.o luac.c
cc -O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' -c -o print.o print.c
cc -o luac luac.o print.o liblua.a -lm
CC adlist.o
CC quicklist.o
CC ae.o
CC anet.o
CC dict.o
CC server.o
CC sds.o
CC zmalloc.o
CC lzf_c.o
CC lzf_d.o
CC pqsort.o
CC zipmap.o
CC sha1.o
CC ziplist.o
CC release.o
CC networking.o
CC util.o
CC object.o
CC db.o
CC replication.o
CC rdb.o
CC t_string.o
CC t_list.o
CC t_set.o
CC t_zset.o
CC t_hash.o
CC config.o
CC aof.o
CC pubsub.o
CC multi.o
CC debug.o
CC sort.o
CC intset.o
CC syncio.o
CC cluster.o
CC crc16.o
CC endianconv.o
CC slowlog.o
CC scripting.o
CC bio.o
CC rio.o
CC rand.o
CC memtest.o
CC crc64.o
CC bitops.o
CC sentinel.o
CC notify.o
CC setproctitle.o
CC blocked.o
CC hyperloglog.o
CC latency.o
CC sparkline.o
CC redis-check-rdb.o
CC redis-check-aof.o
CC geo.o
CC lazyfree.o
CC module.o
CC evict.o
CC expire.o
CC geohash.o
CC geohash_helper.o
CC childinfo.o
CC defrag.o
CC siphash.o
CC rax.o
LINK redis-server
INSTALL redis-sentinel
CC redis-cli.o
LINK redis-cli
CC redis-benchmark.o
LINK redis-benchmark
INSTALL redis-check-rdb
INSTALL redis-check-aof
Hint: It's a good idea to run 'make test' ;)
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
weixiangmings-iMac:redis-4.0.9 weixiangming$ redis-server
2623:C 08 Jun 22:07:48.959 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2623:C 08 Jun 22:07:48.960 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=2623, just started
2623:C 08 Jun 22:07:48.960 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
2623:M 08 Jun 22:07:48.961 * Increased maximum number of open files to 10032 (it was originally set to 256).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 4.0.9 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 2623
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
2623:M 08 Jun 22:07:48.962 # Server initialized
2623:M 08 Jun 22:07:48.962 * Ready to accept connections
我只做到上面这些,以下的这些目前还没有去配置
在redis目录下建立bin,etc,db三个目录
sudo mkdir /usr/local/redis-4.0.9/bin
sudo mkdir /usr/local/redis-4.0.9/etc
sudo mkdir /usr/local/redis-4.0.9/db
把/usr/local/redis/src目录下的mkreleasehdr.sh,redis-benchmark, redis-check-rdb, redis-cli, redis-server拷贝到bin目录
cp /usr/local/redis-4.0.9/src/mkreleasehdr.sh .
cp /usr/local/redis-4.0.9/src/redis-benchmark .
cp /usr/local/redis-4.0.9/src/redis-check-rdb .
cp /usr/local/redis-4.0.9/src/redis-cli .
cp /usr/local/redis-4.0.9/src/redis-server .
拷贝 redis.conf 到 /usr/local/redis/etc下
cp /usr/local/redis-4.0.9/redis.conf /usr/local/redis-4.0.9/etc
修改redis.conf
#修改为守护模式
daemonize yes
#设置进程锁文件
pidfile /usr/local/redis-4.0.9/redis.pid
#端口
port 6379
#客户端超时时间
timeout 300
#日志级别
loglevel debug
#日志文件位置
logfile /usr/local/redis-4.0.9/log-redis.log
#设置数据库的数量,默认数据库为0,可以使用SELECT <dbid>命令在连接上指定数据库id
databases 16
##指定在多长时间内,有多少次更新操作,就将数据同步到数据文件,可以多个条件配合
#save <seconds> <changes>
#Redis默认配置文件中提供了三个条件:
save 900 1
save 300 10
save 60 10000
#指定存储至本地数据库时是否压缩数据,默认为yes,Redis采用LZF压缩,如果为了节省CPU时间,
#可以关闭该#选项,但会导致数据库文件变的巨大
rdbcompression yes
#指定本地数据库文件名
dbfilename dump.rdb
#指定本地数据库路径
dir /usr/local/redis-3.2.8/db/
#指定是否在每次更新操作后进行日志记录,Redis在默认情况下是异步的把数据写入磁盘,如果不开启,可能
#会在断电时导致一段时间内的数据丢失。因为 redis本身同步数据文件是按上面save条件来同步的,所以有
#的数据会在一段时间内只存在于内存中
appendonly no
#指定更新日志条件,共有3个可选值:
#no:表示等操作系统进行数据缓存同步到磁盘(快)
#always:表示每次更新操作后手动调用fsync()将数据写到磁盘(慢,安全)
#everysec:表示每秒同步一次(折衷,默认值)
appendfsync everysec
启动服务
./bin/redis-server etc/redis.conf
查看日志
tail -f log-redis.log
打开redis客户端
./bin/redis-cli
执行redis命令
尽情操作吧。