redis 配置

[root@localhost hufh]# cd /usr/local/src
[root@localhost src]# ls
redis-4.0.10.tar.gz
[root@localhost src]# tar -zxvf ./redis-4.0.10.tar.gz 
redis-4.0.10/
redis-4.0.10/.gitignore
redis-4.0.10/00-RELEASENOTES
redis-4.0.10/BUGS
redis-4.0.10/CONTRIBUTING
redis-4.0.10/COPYING
redis-4.0.10/INSTALL
redis-4.0.10/MANIFESTO
redis-4.0.10/Makefile
redis-4.0.10/README.md
redis-4.0.10/deps/
redis-4.0.10/deps/Makefile
redis-4.0.10/deps/README.md
redis-4.0.10/deps/hiredis/
redis-4.0.10/deps/hiredis/.gitignore
redis-4.0.10/deps/hiredis/.travis.yml
redis-4.0.10/deps/hiredis/CHANGELOG.md
redis-4.0.10/deps/hiredis/COPYING
redis-4.0.10/deps/hiredis/Makefile
redis-4.0.10/deps/hiredis/README.md
redis-4.0.10/deps/hiredis/adapters/
redis-4.0.10/deps/hiredis/adapters/ae.h
redis-4.0.10/deps/hiredis/adapters/glib.h
redis-4.0.10/deps/hiredis/adapters/ivykis.h
redis-4.0.10/deps/hiredis/adapters/libev.h
redis-4.0.10/deps/hiredis/adapters/libevent.h
redis-4.0.10/deps/hiredis/adapters/libuv.h
redis-4.0.10/deps/hiredis/adapters/macosx.h
redis-4.0.10/deps/hiredis/adapters/qt.h
redis-4.0.10/deps/hiredis/appveyor.yml
redis-4.0.10/deps/hiredis/async.c
redis-4.0.10/deps/hiredis/async.h
redis-4.0.10/deps/hiredis/dict.c
redis-4.0.10/deps/hiredis/dict.h
redis-4.0.10/deps/hiredis/examples/
redis-4.0.10/deps/hiredis/examples/example-ae.c
redis-4.0.10/deps/hiredis/examples/example-glib.c
redis-4.0.10/deps/hiredis/examples/example-ivykis.c
redis-4.0.10/deps/hiredis/examples/example-libev.c
redis-4.0.10/deps/hiredis/examples/example-libevent.c
redis-4.0.10/deps/hiredis/examples/example-libuv.c
redis-4.0.10/deps/hiredis/examples/example-macosx.c
redis-4.0.10/deps/hiredis/examples/example-qt.cpp
redis-4.0.10/deps/hiredis/examples/example-qt.h
redis-4.0.10/deps/hiredis/examples/example.c
redis-4.0.10/deps/hiredis/fmacros.h
redis-4.0.10/deps/hiredis/hiredis.c
redis-4.0.10/deps/hiredis/hiredis.h
redis-4.0.10/deps/hiredis/net.c
redis-4.0.10/deps/hiredis/net.h
redis-4.0.10/deps/hiredis/read.c
redis-4.0.10/deps/hiredis/read.h
redis-4.0.10/deps/hiredis/sds.c
redis-4.0.10/deps/hiredis/sds.h
redis-4.0.10/deps/hiredis/sdsalloc.h
redis-4.0.10/deps/hiredis/test.c
redis-4.0.10/deps/hiredis/win32.h
redis-4.0.10/deps/jemalloc/
redis-4.0.10/deps/jemalloc/.autom4te.cfg
redis-4.0.10/deps/jemalloc/.gitattributes
redis-4.0.10/deps/jemalloc/.gitignore
redis-4.0.10/deps/jemalloc/COPYING
redis-4.0.10/deps/jemalloc/ChangeLog
redis-4.0.10/deps/jemalloc/INSTALL
redis-4.0.10/deps/jemalloc/Makefile.in
redis-4.0.10/deps/jemalloc/README
redis-4.0.10/deps/jemalloc/VERSION
redis-4.0.10/deps/jemalloc/autogen.sh
redis-4.0.10/deps/jemalloc/bin/
redis-4.0.10/deps/jemalloc/bin/jemalloc-config.in
redis-4.0.10/deps/jemalloc/bin/jemalloc.sh.in
redis-4.0.10/deps/jemalloc/bin/jeprof.in
redis-4.0.10/deps/jemalloc/config.guess
redis-4.0.10/deps/jemalloc/config.stamp.in
redis-4.0.10/deps/jemalloc/config.sub
redis-4.0.10/deps/jemalloc/configure
redis-4.0.10/deps/jemalloc/configure.ac
redis-4.0.10/deps/jemalloc/coverage.sh
redis-4.0.10/deps/jemalloc/doc/
redis-4.0.10/deps/jemalloc/doc/html.xsl.in
redis-4.0.10/deps/jemalloc/doc/jemalloc.3
redis-4.0.10/deps/jemalloc/doc/jemalloc.html
redis-4.0.10/deps/jemalloc/doc/jemalloc.xml.in
redis-4.0.10/deps/jemalloc/doc/manpages.xsl.in
redis-4.0.10/deps/jemalloc/doc/stylesheet.xsl
redis-4.0.10/deps/jemalloc/include/
redis-4.0.10/deps/jemalloc/include/jemalloc/
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/arena.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/atomic.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/base.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/bitmap.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/chunk.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/chunk_dss.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/chunk_mmap.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/ckh.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/ctl.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/extent.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/hash.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/huge.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/jemalloc_internal.h.in
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_decls.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h.in
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_macros.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/mb.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/mutex.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/pages.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/private_namespace.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/private_symbols.txt
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/private_unnamespace.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/prng.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/prof.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/public_namespace.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/public_unnamespace.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/ql.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/qr.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/quarantine.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/rb.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/rtree.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/size_classes.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/stats.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/tcache.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/tsd.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/util.h
redis-4.0.10/deps/jemalloc/include/jemalloc/internal/valgrind.h
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc_defs.h.in
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc_macros.h.in
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc_mangle.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc_protos.h.in
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc_rename.sh
redis-4.0.10/deps/jemalloc/include/jemalloc/jemalloc_typedefs.h.in
redis-4.0.10/deps/jemalloc/include/msvc_compat/
redis-4.0.10/deps/jemalloc/include/msvc_compat/C99/
redis-4.0.10/deps/jemalloc/include/msvc_compat/C99/stdbool.h
redis-4.0.10/deps/jemalloc/include/msvc_compat/C99/stdint.h
redis-4.0.10/deps/jemalloc/include/msvc_compat/strings.h
redis-4.0.10/deps/jemalloc/include/msvc_compat/windows_extra.h
redis-4.0.10/deps/jemalloc/install-sh
redis-4.0.10/deps/jemalloc/jemalloc.pc.in
redis-4.0.10/deps/jemalloc/src/
redis-4.0.10/deps/jemalloc/src/arena.c
redis-4.0.10/deps/jemalloc/src/atomic.c
redis-4.0.10/deps/jemalloc/src/base.c
redis-4.0.10/deps/jemalloc/src/bitmap.c
redis-4.0.10/deps/jemalloc/src/chunk.c
redis-4.0.10/deps/jemalloc/src/chunk_dss.c
redis-4.0.10/deps/jemalloc/src/chunk_mmap.c
redis-4.0.10/deps/jemalloc/src/ckh.c
redis-4.0.10/deps/jemalloc/src/ctl.c
redis-4.0.10/deps/jemalloc/src/extent.c
redis-4.0.10/deps/jemalloc/src/hash.c
redis-4.0.10/deps/jemalloc/src/huge.c
redis-4.0.10/deps/jemalloc/src/jemalloc.c
redis-4.0.10/deps/jemalloc/src/mb.c
redis-4.0.10/deps/jemalloc/src/mutex.c
redis-4.0.10/deps/jemalloc/src/pages.c
redis-4.0.10/deps/jemalloc/src/prof.c
redis-4.0.10/deps/jemalloc/src/quarantine.c
redis-4.0.10/deps/jemalloc/src/rtree.c
redis-4.0.10/deps/jemalloc/src/stats.c
redis-4.0.10/deps/jemalloc/src/tcache.c
redis-4.0.10/deps/jemalloc/src/tsd.c
redis-4.0.10/deps/jemalloc/src/util.c
redis-4.0.10/deps/jemalloc/src/valgrind.c
redis-4.0.10/deps/jemalloc/src/zone.c
redis-4.0.10/deps/jemalloc/test/
redis-4.0.10/deps/jemalloc/test/include/
redis-4.0.10/deps/jemalloc/test/include/test/
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-alti.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params11213.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params1279.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params132049.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params19937.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params216091.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params2281.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params4253.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params44497.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params607.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-params86243.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT-sse2.h
redis-4.0.10/deps/jemalloc/test/include/test/SFMT.h
redis-4.0.10/deps/jemalloc/test/include/test/btalloc.h
redis-4.0.10/deps/jemalloc/test/include/test/jemalloc_test.h.in
redis-4.0.10/deps/jemalloc/test/include/test/jemalloc_test_defs.h.in
redis-4.0.10/deps/jemalloc/test/include/test/math.h
redis-4.0.10/deps/jemalloc/test/include/test/mq.h
redis-4.0.10/deps/jemalloc/test/include/test/mtx.h
redis-4.0.10/deps/jemalloc/test/include/test/test.h
redis-4.0.10/deps/jemalloc/test/include/test/thd.h
redis-4.0.10/deps/jemalloc/test/include/test/timer.h
redis-4.0.10/deps/jemalloc/test/integration/
redis-4.0.10/deps/jemalloc/test/integration/MALLOCX_ARENA.c
redis-4.0.10/deps/jemalloc/test/integration/aligned_alloc.c
redis-4.0.10/deps/jemalloc/test/integration/allocated.c
redis-4.0.10/deps/jemalloc/test/integration/chunk.c
redis-4.0.10/deps/jemalloc/test/integration/mallocx.c
redis-4.0.10/deps/jemalloc/test/integration/overflow.c
redis-4.0.10/deps/jemalloc/test/integration/posix_memalign.c
redis-4.0.10/deps/jemalloc/test/integration/rallocx.c
redis-4.0.10/deps/jemalloc/test/integration/sdallocx.c
redis-4.0.10/deps/jemalloc/test/integration/thread_arena.c
redis-4.0.10/deps/jemalloc/test/integration/thread_tcache_enabled.c
redis-4.0.10/deps/jemalloc/test/integration/xallocx.c
redis-4.0.10/deps/jemalloc/test/src/
redis-4.0.10/deps/jemalloc/test/src/SFMT.c
redis-4.0.10/deps/jemalloc/test/src/btalloc.c
redis-4.0.10/deps/jemalloc/test/src/btalloc_0.c
redis-4.0.10/deps/jemalloc/test/src/btalloc_1.c
redis-4.0.10/deps/jemalloc/test/src/math.c
redis-4.0.10/deps/jemalloc/test/src/mq.c
redis-4.0.10/deps/jemalloc/test/src/mtx.c
redis-4.0.10/deps/jemalloc/test/src/test.c
redis-4.0.10/deps/jemalloc/test/src/thd.c
redis-4.0.10/deps/jemalloc/test/src/timer.c
redis-4.0.10/deps/jemalloc/test/stress/
redis-4.0.10/deps/jemalloc/test/stress/microbench.c
redis-4.0.10/deps/jemalloc/test/test.sh.in
redis-4.0.10/deps/jemalloc/test/unit/
redis-4.0.10/deps/jemalloc/test/unit/SFMT.c
redis-4.0.10/deps/jemalloc/test/unit/atomic.c
redis-4.0.10/deps/jemalloc/test/unit/bitmap.c
redis-4.0.10/deps/jemalloc/test/unit/ckh.c
redis-4.0.10/deps/jemalloc/test/unit/hash.c
redis-4.0.10/deps/jemalloc/test/unit/junk.c
redis-4.0.10/deps/jemalloc/test/unit/junk_alloc.c
redis-4.0.10/deps/jemalloc/test/unit/junk_free.c
redis-4.0.10/deps/jemalloc/test/unit/lg_chunk.c
redis-4.0.10/deps/jemalloc/test/unit/mallctl.c
redis-4.0.10/deps/jemalloc/test/unit/math.c
redis-4.0.10/deps/jemalloc/test/unit/mq.c
redis-4.0.10/deps/jemalloc/test/unit/mtx.c
redis-4.0.10/deps/jemalloc/test/unit/prof_accum.c
redis-4.0.10/deps/jemalloc/test/unit/prof_active.c
redis-4.0.10/deps/jemalloc/test/unit/prof_gdump.c
redis-4.0.10/deps/jemalloc/test/unit/prof_idump.c
redis-4.0.10/deps/jemalloc/test/unit/prof_reset.c
redis-4.0.10/deps/jemalloc/test/unit/prof_thread_name.c
redis-4.0.10/deps/jemalloc/test/unit/ql.c
redis-4.0.10/deps/jemalloc/test/unit/qr.c
redis-4.0.10/deps/jemalloc/test/unit/quarantine.c
redis-4.0.10/deps/jemalloc/test/unit/rb.c
redis-4.0.10/deps/jemalloc/test/unit/rtree.c
redis-4.0.10/deps/jemalloc/test/unit/size_classes.c
redis-4.0.10/deps/jemalloc/test/unit/stats.c
redis-4.0.10/deps/jemalloc/test/unit/tsd.c
redis-4.0.10/deps/jemalloc/test/unit/util.c
redis-4.0.10/deps/jemalloc/test/unit/zero.c
redis-4.0.10/deps/linenoise/
redis-4.0.10/deps/linenoise/.gitignore
redis-4.0.10/deps/linenoise/Makefile
redis-4.0.10/deps/linenoise/README.markdown
redis-4.0.10/deps/linenoise/example.c
redis-4.0.10/deps/linenoise/linenoise.c
redis-4.0.10/deps/linenoise/linenoise.h
redis-4.0.10/deps/lua/
redis-4.0.10/deps/lua/COPYRIGHT
redis-4.0.10/deps/lua/HISTORY
redis-4.0.10/deps/lua/INSTALL
redis-4.0.10/deps/lua/Makefile
redis-4.0.10/deps/lua/README
redis-4.0.10/deps/lua/doc/
redis-4.0.10/deps/lua/doc/contents.html
redis-4.0.10/deps/lua/doc/cover.png
redis-4.0.10/deps/lua/doc/logo.gif
redis-4.0.10/deps/lua/doc/lua.1
redis-4.0.10/deps/lua/doc/lua.css
redis-4.0.10/deps/lua/doc/lua.html
redis-4.0.10/deps/lua/doc/luac.1
redis-4.0.10/deps/lua/doc/luac.html
redis-4.0.10/deps/lua/doc/manual.css
redis-4.0.10/deps/lua/doc/manual.html
redis-4.0.10/deps/lua/doc/readme.html
redis-4.0.10/deps/lua/etc/
redis-4.0.10/deps/lua/etc/Makefile
redis-4.0.10/deps/lua/etc/README
redis-4.0.10/deps/lua/etc/all.c
redis-4.0.10/deps/lua/etc/lua.hpp
redis-4.0.10/deps/lua/etc/lua.ico
redis-4.0.10/deps/lua/etc/lua.pc
redis-4.0.10/deps/lua/etc/luavs.bat
redis-4.0.10/deps/lua/etc/min.c
redis-4.0.10/deps/lua/etc/noparser.c
redis-4.0.10/deps/lua/etc/strict.lua
redis-4.0.10/deps/lua/src/
redis-4.0.10/deps/lua/src/Makefile
redis-4.0.10/deps/lua/src/fpconv.c
redis-4.0.10/deps/lua/src/fpconv.h
redis-4.0.10/deps/lua/src/lapi.c
redis-4.0.10/deps/lua/src/lapi.h
redis-4.0.10/deps/lua/src/lauxlib.c
redis-4.0.10/deps/lua/src/lauxlib.h
redis-4.0.10/deps/lua/src/lbaselib.c
redis-4.0.10/deps/lua/src/lcode.c
redis-4.0.10/deps/lua/src/lcode.h
redis-4.0.10/deps/lua/src/ldblib.c
redis-4.0.10/deps/lua/src/ldebug.c
redis-4.0.10/deps/lua/src/ldebug.h
redis-4.0.10/deps/lua/src/ldo.c
redis-4.0.10/deps/lua/src/ldo.h
redis-4.0.10/deps/lua/src/ldump.c
redis-4.0.10/deps/lua/src/lfunc.c
redis-4.0.10/deps/lua/src/lfunc.h
redis-4.0.10/deps/lua/src/lgc.c
redis-4.0.10/deps/lua/src/lgc.h
redis-4.0.10/deps/lua/src/linit.c
redis-4.0.10/deps/lua/src/liolib.c
redis-4.0.10/deps/lua/src/llex.c
redis-4.0.10/deps/lua/src/llex.h
redis-4.0.10/deps/lua/src/llimits.h
redis-4.0.10/deps/lua/src/lmathlib.c
redis-4.0.10/deps/lua/src/lmem.c
redis-4.0.10/deps/lua/src/lmem.h
redis-4.0.10/deps/lua/src/loadlib.c
redis-4.0.10/deps/lua/src/lobject.c
redis-4.0.10/deps/lua/src/lobject.h
redis-4.0.10/deps/lua/src/lopcodes.c
redis-4.0.10/deps/lua/src/lopcodes.h
redis-4.0.10/deps/lua/src/loslib.c
redis-4.0.10/deps/lua/src/lparser.c
redis-4.0.10/deps/lua/src/lparser.h
redis-4.0.10/deps/lua/src/lstate.c
redis-4.0.10/deps/lua/src/lstate.h
redis-4.0.10/deps/lua/src/lstring.c
redis-4.0.10/deps/lua/src/lstring.h
redis-4.0.10/deps/lua/src/lstrlib.c
redis-4.0.10/deps/lua/src/ltable.c
redis-4.0.10/deps/lua/src/ltable.h
redis-4.0.10/deps/lua/src/ltablib.c
redis-4.0.10/deps/lua/src/ltm.c
redis-4.0.10/deps/lua/src/ltm.h
redis-4.0.10/deps/lua/src/lua.c
redis-4.0.10/deps/lua/src/lua.h
redis-4.0.10/deps/lua/src/lua_bit.c
redis-4.0.10/deps/lua/src/lua_cjson.c
redis-4.0.10/deps/lua/src/lua_cmsgpack.c
redis-4.0.10/deps/lua/src/lua_struct.c
redis-4.0.10/deps/lua/src/luac.c
redis-4.0.10/deps/lua/src/luaconf.h
redis-4.0.10/deps/lua/src/lualib.h
redis-4.0.10/deps/lua/src/lundump.c
redis-4.0.10/deps/lua/src/lundump.h
redis-4.0.10/deps/lua/src/lvm.c
redis-4.0.10/deps/lua/src/lvm.h
redis-4.0.10/deps/lua/src/lzio.c
redis-4.0.10/deps/lua/src/lzio.h
redis-4.0.10/deps/lua/src/print.c
redis-4.0.10/deps/lua/src/strbuf.c
redis-4.0.10/deps/lua/src/strbuf.h
redis-4.0.10/deps/lua/test/
redis-4.0.10/deps/lua/test/README
redis-4.0.10/deps/lua/test/bisect.lua
redis-4.0.10/deps/lua/test/cf.lua
redis-4.0.10/deps/lua/test/echo.lua
redis-4.0.10/deps/lua/test/env.lua
redis-4.0.10/deps/lua/test/factorial.lua
redis-4.0.10/deps/lua/test/fib.lua
redis-4.0.10/deps/lua/test/fibfor.lua
redis-4.0.10/deps/lua/test/globals.lua
redis-4.0.10/deps/lua/test/hello.lua
redis-4.0.10/deps/lua/test/life.lua
redis-4.0.10/deps/lua/test/luac.lua
redis-4.0.10/deps/lua/test/printf.lua
redis-4.0.10/deps/lua/test/readonly.lua
redis-4.0.10/deps/lua/test/sieve.lua
redis-4.0.10/deps/lua/test/sort.lua
redis-4.0.10/deps/lua/test/table.lua
redis-4.0.10/deps/lua/test/trace-calls.lua
redis-4.0.10/deps/lua/test/trace-globals.lua
redis-4.0.10/deps/lua/test/xd.lua
redis-4.0.10/deps/update-jemalloc.sh
redis-4.0.10/redis.conf
redis-4.0.10/runtest
redis-4.0.10/runtest-cluster
redis-4.0.10/runtest-sentinel
redis-4.0.10/sentinel.conf
redis-4.0.10/src/
redis-4.0.10/src/.gitignore
redis-4.0.10/src/Makefile
redis-4.0.10/src/adlist.c
redis-4.0.10/src/adlist.h
redis-4.0.10/src/ae.c
redis-4.0.10/src/ae.h
redis-4.0.10/src/ae_epoll.c
redis-4.0.10/src/ae_evport.c
redis-4.0.10/src/ae_kqueue.c
redis-4.0.10/src/ae_select.c
redis-4.0.10/src/anet.c
redis-4.0.10/src/anet.h
redis-4.0.10/src/aof.c
redis-4.0.10/src/asciilogo.h
redis-4.0.10/src/atomicvar.h
redis-4.0.10/src/bio.c
redis-4.0.10/src/bio.h
redis-4.0.10/src/bitops.c
redis-4.0.10/src/blocked.c
redis-4.0.10/src/childinfo.c
redis-4.0.10/src/cluster.c
redis-4.0.10/src/cluster.h
redis-4.0.10/src/config.c
redis-4.0.10/src/config.h
redis-4.0.10/src/crc16.c
redis-4.0.10/src/crc64.c
redis-4.0.10/src/crc64.h
redis-4.0.10/src/db.c
redis-4.0.10/src/debug.c
redis-4.0.10/src/debugmacro.h
redis-4.0.10/src/defrag.c
redis-4.0.10/src/dict.c
redis-4.0.10/src/dict.h
redis-4.0.10/src/endianconv.c
redis-4.0.10/src/endianconv.h
redis-4.0.10/src/evict.c
redis-4.0.10/src/expire.c
redis-4.0.10/src/fmacros.h
redis-4.0.10/src/geo.c
redis-4.0.10/src/geo.h
redis-4.0.10/src/geohash.c
redis-4.0.10/src/geohash.h
redis-4.0.10/src/geohash_helper.c
redis-4.0.10/src/geohash_helper.h
redis-4.0.10/src/help.h
redis-4.0.10/src/hyperloglog.c
redis-4.0.10/src/intset.c
redis-4.0.10/src/intset.h
redis-4.0.10/src/latency.c
redis-4.0.10/src/latency.h
redis-4.0.10/src/lazyfree.c
redis-4.0.10/src/lzf.h
redis-4.0.10/src/lzfP.h
redis-4.0.10/src/lzf_c.c
redis-4.0.10/src/lzf_d.c
redis-4.0.10/src/memtest.c
redis-4.0.10/src/mkreleasehdr.sh
redis-4.0.10/src/module.c
redis-4.0.10/src/modules/
redis-4.0.10/src/modules/.gitignore
redis-4.0.10/src/modules/Makefile
redis-4.0.10/src/modules/gendoc.rb
redis-4.0.10/src/modules/helloblock.c
redis-4.0.10/src/modules/hellotype.c
redis-4.0.10/src/modules/helloworld.c
redis-4.0.10/src/modules/testmodule.c
redis-4.0.10/src/multi.c
redis-4.0.10/src/networking.c
redis-4.0.10/src/notify.c
redis-4.0.10/src/object.c
redis-4.0.10/src/pqsort.c
redis-4.0.10/src/pqsort.h
redis-4.0.10/src/pubsub.c
redis-4.0.10/src/quicklist.c
redis-4.0.10/src/quicklist.h
redis-4.0.10/src/rand.c
redis-4.0.10/src/rand.h
redis-4.0.10/src/rax.c
redis-4.0.10/src/rax.h
redis-4.0.10/src/rax_malloc.h
redis-4.0.10/src/rdb.c
redis-4.0.10/src/rdb.h
redis-4.0.10/src/redis-benchmark.c
redis-4.0.10/src/redis-check-aof.c
redis-4.0.10/src/redis-check-rdb.c
redis-4.0.10/src/redis-cli.c
redis-4.0.10/src/redis-trib.rb
redis-4.0.10/src/redisassert.h
redis-4.0.10/src/redismodule.h
redis-4.0.10/src/release.c
redis-4.0.10/src/replication.c
redis-4.0.10/src/rio.c
redis-4.0.10/src/rio.h
redis-4.0.10/src/scripting.c
redis-4.0.10/src/sds.c
redis-4.0.10/src/sds.h
redis-4.0.10/src/sdsalloc.h
redis-4.0.10/src/sentinel.c
redis-4.0.10/src/server.c
redis-4.0.10/src/server.h
redis-4.0.10/src/setproctitle.c
redis-4.0.10/src/sha1.c
redis-4.0.10/src/sha1.h
redis-4.0.10/src/siphash.c
redis-4.0.10/src/slowlog.c
redis-4.0.10/src/slowlog.h
redis-4.0.10/src/solarisfixes.h
redis-4.0.10/src/sort.c
redis-4.0.10/src/sparkline.c
redis-4.0.10/src/sparkline.h
redis-4.0.10/src/syncio.c
redis-4.0.10/src/t_hash.c
redis-4.0.10/src/t_list.c
redis-4.0.10/src/t_set.c
redis-4.0.10/src/t_string.c
redis-4.0.10/src/t_zset.c
redis-4.0.10/src/testhelp.h
redis-4.0.10/src/util.c
redis-4.0.10/src/util.h
redis-4.0.10/src/valgrind.sup
redis-4.0.10/src/version.h
redis-4.0.10/src/ziplist.c
redis-4.0.10/src/ziplist.h
redis-4.0.10/src/zipmap.c
redis-4.0.10/src/zipmap.h
redis-4.0.10/src/zmalloc.c
redis-4.0.10/src/zmalloc.h
redis-4.0.10/tests/
redis-4.0.10/tests/assets/
redis-4.0.10/tests/assets/default.conf
redis-4.0.10/tests/assets/encodings.rdb
redis-4.0.10/tests/assets/hash-zipmap.rdb
redis-4.0.10/tests/cluster/
redis-4.0.10/tests/cluster/cluster.tcl
redis-4.0.10/tests/cluster/run.tcl
redis-4.0.10/tests/cluster/tests/
redis-4.0.10/tests/cluster/tests/00-base.tcl
redis-4.0.10/tests/cluster/tests/01-faildet.tcl
redis-4.0.10/tests/cluster/tests/02-failover.tcl
redis-4.0.10/tests/cluster/tests/03-failover-loop.tcl
redis-4.0.10/tests/cluster/tests/04-resharding.tcl
redis-4.0.10/tests/cluster/tests/05-slave-selection.tcl
redis-4.0.10/tests/cluster/tests/06-slave-stop-cond.tcl
redis-4.0.10/tests/cluster/tests/07-replica-migration.tcl
redis-4.0.10/tests/cluster/tests/08-update-msg.tcl
redis-4.0.10/tests/cluster/tests/09-pubsub.tcl
redis-4.0.10/tests/cluster/tests/10-manual-failover.tcl
redis-4.0.10/tests/cluster/tests/11-manual-takeover.tcl
redis-4.0.10/tests/cluster/tests/12-replica-migration-2.tcl
redis-4.0.10/tests/cluster/tests/13-no-failover-option.tcl
redis-4.0.10/tests/cluster/tests/helpers/
redis-4.0.10/tests/cluster/tests/helpers/onlydots.tcl
redis-4.0.10/tests/cluster/tests/includes/
redis-4.0.10/tests/cluster/tests/includes/init-tests.tcl
redis-4.0.10/tests/cluster/tmp/
redis-4.0.10/tests/cluster/tmp/.gitignore
redis-4.0.10/tests/helpers/
redis-4.0.10/tests/helpers/bg_complex_data.tcl
redis-4.0.10/tests/helpers/gen_write_load.tcl
redis-4.0.10/tests/instances.tcl
redis-4.0.10/tests/integration/
redis-4.0.10/tests/integration/aof-race.tcl
redis-4.0.10/tests/integration/aof.tcl
redis-4.0.10/tests/integration/convert-zipmap-hash-on-load.tcl
redis-4.0.10/tests/integration/logging.tcl
redis-4.0.10/tests/integration/psync2-reg.tcl
redis-4.0.10/tests/integration/psync2.tcl
redis-4.0.10/tests/integration/rdb.tcl
redis-4.0.10/tests/integration/redis-cli.tcl
redis-4.0.10/tests/integration/replication-2.tcl
redis-4.0.10/tests/integration/replication-3.tcl
redis-4.0.10/tests/integration/replication-4.tcl
redis-4.0.10/tests/integration/replication-psync.tcl
redis-4.0.10/tests/integration/replication.tcl
redis-4.0.10/tests/sentinel/
redis-4.0.10/tests/sentinel/run.tcl
redis-4.0.10/tests/sentinel/tests/
redis-4.0.10/tests/sentinel/tests/00-base.tcl
redis-4.0.10/tests/sentinel/tests/01-conf-update.tcl
redis-4.0.10/tests/sentinel/tests/02-slaves-reconf.tcl
redis-4.0.10/tests/sentinel/tests/03-runtime-reconf.tcl
redis-4.0.10/tests/sentinel/tests/04-slave-selection.tcl
redis-4.0.10/tests/sentinel/tests/05-manual.tcl
redis-4.0.10/tests/sentinel/tests/06-ckquorum.tcl
redis-4.0.10/tests/sentinel/tests/07-down-conditions.tcl
redis-4.0.10/tests/sentinel/tests/includes/
redis-4.0.10/tests/sentinel/tests/includes/init-tests.tcl
redis-4.0.10/tests/sentinel/tmp/
redis-4.0.10/tests/sentinel/tmp/.gitignore
redis-4.0.10/tests/support/
redis-4.0.10/tests/support/cluster.tcl
redis-4.0.10/tests/support/redis.tcl
redis-4.0.10/tests/support/server.tcl
redis-4.0.10/tests/support/test.tcl
redis-4.0.10/tests/support/tmpfile.tcl
redis-4.0.10/tests/support/util.tcl
redis-4.0.10/tests/test_helper.tcl
redis-4.0.10/tests/tmp/
redis-4.0.10/tests/tmp/.gitignore
redis-4.0.10/tests/unit/
redis-4.0.10/tests/unit/aofrw.tcl
redis-4.0.10/tests/unit/auth.tcl
redis-4.0.10/tests/unit/bitfield.tcl
redis-4.0.10/tests/unit/bitops.tcl
redis-4.0.10/tests/unit/dump.tcl
redis-4.0.10/tests/unit/expire.tcl
redis-4.0.10/tests/unit/geo.tcl
redis-4.0.10/tests/unit/hyperloglog.tcl
redis-4.0.10/tests/unit/introspection-2.tcl
redis-4.0.10/tests/unit/introspection.tcl
redis-4.0.10/tests/unit/keyspace.tcl
redis-4.0.10/tests/unit/latency-monitor.tcl
redis-4.0.10/tests/unit/lazyfree.tcl
redis-4.0.10/tests/unit/limits.tcl
redis-4.0.10/tests/unit/maxmemory.tcl
redis-4.0.10/tests/unit/memefficiency.tcl
redis-4.0.10/tests/unit/multi.tcl
redis-4.0.10/tests/unit/obuf-limits.tcl
redis-4.0.10/tests/unit/other.tcl
redis-4.0.10/tests/unit/printver.tcl
redis-4.0.10/tests/unit/protocol.tcl
redis-4.0.10/tests/unit/pubsub.tcl
redis-4.0.10/tests/unit/quit.tcl
redis-4.0.10/tests/unit/scan.tcl
redis-4.0.10/tests/unit/scripting.tcl
redis-4.0.10/tests/unit/slowlog.tcl
redis-4.0.10/tests/unit/sort.tcl
redis-4.0.10/tests/unit/type/
redis-4.0.10/tests/unit/type/hash.tcl
redis-4.0.10/tests/unit/type/incr.tcl
redis-4.0.10/tests/unit/type/list-2.tcl
redis-4.0.10/tests/unit/type/list-3.tcl
redis-4.0.10/tests/unit/type/list-common.tcl
redis-4.0.10/tests/unit/type/list.tcl
redis-4.0.10/tests/unit/type/set.tcl
redis-4.0.10/tests/unit/type/string.tcl
redis-4.0.10/tests/unit/type/zset.tcl
redis-4.0.10/tests/unit/wait.tcl
redis-4.0.10/utils/
redis-4.0.10/utils/build-static-symbols.tcl
redis-4.0.10/utils/cluster_fail_time.tcl
redis-4.0.10/utils/corrupt_rdb.c
redis-4.0.10/utils/create-cluster/
redis-4.0.10/utils/create-cluster/.gitignore
redis-4.0.10/utils/create-cluster/README
redis-4.0.10/utils/create-cluster/create-cluster
redis-4.0.10/utils/generate-command-help.rb
redis-4.0.10/utils/graphs/
redis-4.0.10/utils/graphs/commits-over-time/
redis-4.0.10/utils/graphs/commits-over-time/README.md
redis-4.0.10/utils/graphs/commits-over-time/genhtml.tcl
redis-4.0.10/utils/hashtable/
redis-4.0.10/utils/hashtable/README
redis-4.0.10/utils/hashtable/rehashing.c
redis-4.0.10/utils/hyperloglog/
redis-4.0.10/utils/hyperloglog/.gitignore
redis-4.0.10/utils/hyperloglog/hll-err.rb
redis-4.0.10/utils/hyperloglog/hll-gnuplot-graph.rb
redis-4.0.10/utils/install_server.sh
redis-4.0.10/utils/lru/
redis-4.0.10/utils/lru/README
redis-4.0.10/utils/lru/lfu-simulation.c
redis-4.0.10/utils/lru/test-lru.rb
redis-4.0.10/utils/redis-copy.rb
redis-4.0.10/utils/redis-sha1.rb
redis-4.0.10/utils/redis_init_script
redis-4.0.10/utils/redis_init_script.tpl
redis-4.0.10/utils/releasetools/
redis-4.0.10/utils/releasetools/01_create_tarball.sh
redis-4.0.10/utils/releasetools/02_upload_tarball.sh
redis-4.0.10/utils/releasetools/03_test_release.sh
redis-4.0.10/utils/releasetools/04_release_hash.sh
redis-4.0.10/utils/releasetools/changelog.tcl
redis-4.0.10/utils/speed-regression.tcl
redis-4.0.10/utils/whatisdoing.sh
[root@localhost src]# whereis redis
redis:[root@localhost src]# ls
redis-4.0.10  redis-4.0.10.tar.gz
[root@localhost src]# cd ./redis-4.0.10/
[root@localhost redis-4.0.10]# make
cd src && make all
make[1]: 进入目录“/usr/local/src/redis-4.0.10/src”
    CC Makefile.dep
make[1]: 离开目录“/usr/local/src/redis-4.0.10/src”
make[1]: 进入目录“/usr/local/src/redis-4.0.10/src”
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 && make distclean)
make[2]: 进入目录“/usr/local/src/redis-4.0.10/deps”
(cd hiredis && make clean) > /dev/null || true
(cd linenoise && make clean) > /dev/null || true
(cd lua && make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
(rm -f .make-*)
make[2]: 离开目录“/usr/local/src/redis-4.0.10/deps”
(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=jemalloc >> .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 -DUSE_JEMALLOC -I../deps/jemalloc/include >> .make-settings
echo PREV_FINAL_LDFLAGS=  -g -ggdb -rdynamic >> .make-settings
(cd ../deps && make hiredis linenoise lua jemalloc)
make[2]: 进入目录“/usr/local/src/redis-4.0.10/deps”
(cd hiredis && make clean) > /dev/null || true
(cd linenoise && make clean) > /dev/null || true
(cd lua && make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
(rm -f .make-*)
(echo "" > .make-cflags)
(echo "" > .make-ldflags)
MAKE hiredis
cd hiredis && make static
make[3]: 进入目录“/usr/local/src/redis-4.0.10/deps/hiredis”
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[3]: 离开目录“/usr/local/src/redis-4.0.10/deps/hiredis”
MAKE linenoise
cd linenoise && make
make[3]: 进入目录“/usr/local/src/redis-4.0.10/deps/linenoise”
cc  -Wall -Os -g  -c linenoise.c
make[3]: 离开目录“/usr/local/src/redis-4.0.10/deps/linenoise”
MAKE lua
cd lua/src && make all CFLAGS="-O2 -Wall -DLUA_ANSI -DENABLE_CJSON_GLOBAL -DREDIS_STATIC='' " MYLDFLAGS="" AR="ar rcu"
make[3]: 进入目录“/usr/local/src/redis-4.0.10/deps/lua/src”
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: 在函数‘f_parser’中:
ldo.c:496:7: 警告:未使用的变量‘c’ [-Wunused-variable]
   int c = luaZ_lookahead(p->z);
       ^
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
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
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 
liblua.a(loslib.o):在函数‘os_tmpname’中:
loslib.c:(.text+0x28c): 警告:the use of `tmpnam' is dangerous, better use `mkstemp'
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 
make[3]: 离开目录“/usr/local/src/redis-4.0.10/deps/lua/src”
MAKE jemalloc
cd jemalloc && ./configure --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS=""
checking for xsltproc... /bin/xsltproc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of intmax_t... 8
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether pause instruction is compilable... yes
checking for ar... ar
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking whether malloc_usable_size definition can use const argument... no
checking whether __attribute__ syntax is compilable... yes
checking whether compiler supports -fvisibility=hidden... yes
checking whether compiler supports -Werror... yes
checking whether tls_model attribute is compilable... yes
checking whether compiler supports -Werror... yes
checking whether alloc_size attribute is compilable... yes
checking whether compiler supports -Werror... yes
checking whether format(gnu_printf, ...) attribute is compilable... yes
checking whether compiler supports -Werror... yes
checking whether format(printf, ...) attribute is compilable... yes
checking for a BSD-compatible install... /bin/install -c
checking for ranlib... ranlib
checking for ld... /bin/ld
checking for autoconf... /bin/autoconf
checking for memalign... yes
checking for valloc... yes
checking configured backtracing method... N/A
checking for sbrk... yes
checking whether utrace(2) is compilable... no
checking whether valgrind is compilable... no
checking whether a program using __builtin_ffsl is compilable... yes
checking LG_PAGE... 12
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for library containing clock_gettime... none required
checking for secure_getenv... yes
checking for issetugid... no
checking for _malloc_thread_cleanup... no
checking for _pthread_mutex_init_calloc_cb... no
checking for TLS... yes
checking whether C11 atomics is compilable... no
checking whether atomic(9) is compilable... no
checking whether Darwin OSAtomic*() is compilable... no
checking whether madvise(2) is compilable... yes
checking whether to force 32-bit __sync_{add,sub}_and_fetch()... no
checking whether to force 64-bit __sync_{add,sub}_and_fetch()... no
checking for __builtin_clz... yes
checking whether Darwin OSSpin*() is compilable... no
checking whether glibc malloc hook is compilable... yes
checking whether glibc memalign hook is compilable... yes
checking whether pthreads adaptive mutexes is compilable... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating jemalloc.pc
config.status: creating doc/html.xsl
config.status: creating doc/manpages.xsl
config.status: creating doc/jemalloc.xml
config.status: creating include/jemalloc/jemalloc_macros.h
config.status: creating include/jemalloc/jemalloc_protos.h
config.status: creating include/jemalloc/jemalloc_typedefs.h
config.status: creating include/jemalloc/internal/jemalloc_internal.h
config.status: creating test/test.sh
config.status: creating test/include/test/jemalloc_test.h
config.status: creating config.stamp
config.status: creating bin/jemalloc-config
config.status: creating bin/jemalloc.sh
config.status: creating bin/jeprof
config.status: creating include/jemalloc/jemalloc_defs.h
config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h
config.status: creating test/include/test/jemalloc_test_defs.h
config.status: executing include/jemalloc/internal/private_namespace.h commands
config.status: executing include/jemalloc/internal/private_unnamespace.h commands
config.status: executing include/jemalloc/internal/public_symbols.txt commands
config.status: executing include/jemalloc/internal/public_namespace.h commands
config.status: executing include/jemalloc/internal/public_unnamespace.h commands
config.status: executing include/jemalloc/internal/size_classes.h commands
config.status: executing include/jemalloc/jemalloc_protos_jet.h commands
config.status: executing include/jemalloc/jemalloc_rename.h commands
config.status: executing include/jemalloc/jemalloc_mangle.h commands
config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands
config.status: executing include/jemalloc/jemalloc.h commands
===============================================================================
jemalloc version   : 4.0.3-0-ge9192eacf8935e29fc62fddc2701f7942b1cc02c
library revision   : 2


CONFIG             : --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence 'CFLAGS=-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops ' LDFLAGS=
CC                 : gcc
CFLAGS             : -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -fvisibility=hidden
CPPFLAGS           :  -D_GNU_SOURCE -D_REENTRANT
LDFLAGS            : 
EXTRA_LDFLAGS      : 
LIBS               :  -lpthread
TESTLIBS           : 
RPATH_EXTRA        : 


XSLTPROC           : /bin/xsltproc
XSLROOT            : 


PREFIX             : /usr/local
BINDIR             : /usr/local/bin
DATADIR            : /usr/local/share
INCLUDEDIR         : /usr/local/include
LIBDIR             : /usr/local/lib
MANDIR             : /usr/local/share/man


srcroot            : 
abs_srcroot        : /usr/local/src/redis-4.0.10/deps/jemalloc/
objroot            : 
abs_objroot        : /usr/local/src/redis-4.0.10/deps/jemalloc/


JEMALLOC_PREFIX    : je_
JEMALLOC_PRIVATE_NAMESPACE
                   : je_
install_suffix     : 
autogen            : 0
cc-silence         : 1
debug              : 0
code-coverage      : 0
stats              : 1
prof               : 0
prof-libunwind     : 0
prof-libgcc        : 0
prof-gcc           : 0
tcache             : 1
fill               : 1
utrace             : 0
valgrind           : 0
xmalloc            : 0
munmap             : 0
lazy_lock          : 0
tls                : 1
cache-oblivious    : 1
===============================================================================
cd jemalloc && make CFLAGS="-std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops " LDFLAGS="" lib/libjemalloc.a
make[3]: 进入目录“/usr/local/src/redis-4.0.10/deps/jemalloc”
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/jemalloc.o src/jemalloc.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/arena.o src/arena.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/atomic.o src/atomic.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/base.o src/base.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/bitmap.o src/bitmap.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk.o src/chunk.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_dss.o src/chunk_dss.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_mmap.o src/chunk_mmap.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ckh.o src/ckh.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ctl.o src/ctl.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent.o src/extent.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/hash.o src/hash.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/huge.o src/huge.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mb.o src/mb.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mutex.o src/mutex.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/pages.o src/pages.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/prof.o src/prof.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/quarantine.o src/quarantine.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/rtree.o src/rtree.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/stats.o src/stats.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tcache.o src/tcache.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/util.o src/util.c
gcc -std=gnu99 -Wall -pipe -g3 -O3 -funroll-loops  -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tsd.o src/tsd.c
ar crus lib/libjemalloc.a src/jemalloc.o src/arena.o src/atomic.o src/base.o src/bitmap.o src/chunk.o src/chunk_dss.o src/chunk_mmap.o src/ckh.o src/ctl.o src/extent.o src/hash.o src/huge.o src/mb.o src/mutex.o src/pages.o src/prof.o src/quarantine.o src/rtree.o src/stats.o src/tcache.o src/util.o src/tsd.o
make[3]: 离开目录“/usr/local/src/redis-4.0.10/deps/jemalloc”
make[2]: 离开目录“/usr/local/src/redis-4.0.10/deps”
    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' ;)


make[1]: 离开目录“/usr/local/src/redis-4.0.10/src”
[root@localhost redis-4.0.10]# mkdir /usr/local/redis
[root@localhost redis-4.0.10]# cd /usr/local/redis
[root@localhost redis]# ls
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/s
sentinel.conf  src/           
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/src/r
rand.c             rdb.o              redis-check-rdb.c  release.c
rand.h             redisassert.h      redis-check-rdb.o  release.h
rand.o             redis-benchmark    redis-cli          release.o
rax.c              redis-benchmark.c  redis-cli.c        replication.c
rax.h              redis-benchmark.o  redis-cli.o        replication.o
rax_malloc.h       redis-check-aof    redismodule.h      rio.c
rax.o              redis-check-aof.c  redis-sentinel     rio.h
rdb.c              redis-check-aof.o  redis-server       rio.o
rdb.h              redis-check-rdb    redis-trib.rb      
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/src/redis-server /usr/local/redis
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/src/redis-cli /usr/local/redis
[root@localhost redis]# ls
redis-cli  redis-server
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/r
redis.conf        runtest           runtest-cluster   runtest-sentinel
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/redis.conf /usr/local/redis
[root@localhost redis]# ls
redis-cli  redis.conf  redis-server
[root@localhost redis]# vi redis.conf
[root@localhost redis]# service redis start
Redirecting to /bin/systemctl start redis.service
Failed to start redis.service: Unit not found.
[root@localhost redis]# ./redis-server
10257:C 26 Jun 09:16:53.788 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10257:C 26 Jun 09:16:53.788 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=10257, just started
10257:C 26 Jun 09:16:53.788 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf
10257:M 26 Jun 09:16:53.789 * Increased maximum number of open files to 10032 (it was originally set to 1024).
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 4.0.10 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 10257
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               


10257:M 26 Jun 09:16:53.791 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
10257:M 26 Jun 09:16:53.791 # Server initialized
10257:M 26 Jun 09:16:53.791 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
10257:M 26 Jun 09:16:53.791 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
10257:M 26 Jun 09:16:53.791 * Ready to accept connections
^C10257:signal-handler (1529975972) Received SIGINT scheduling shutdown...
10257:M 26 Jun 09:19:32.194 # User requested shutdown...
10257:M 26 Jun 09:19:32.194 * Saving the final RDB snapshot before exiting.
10257:M 26 Jun 09:19:32.243 * DB saved on disk
10257:M 26 Jun 09:19:32.244 # Redis is now ready to exit, bye bye...
[root@localhost redis]# cd /etc
[root@localhost etc]# ls
abrt                        hosts.deny                pulse
adjtime                     hp                        purple
aliases                     idmapd.conf               python
aliases.db                  init.d                    qemu-ga
alsa                        inittab                   qemu-kvm
alternatives                inputrc                   radvd.conf
anacrontab                  iproute2                  ras
asound.conf                 ipsec.conf                rc0.d
at.deny                     ipsec.d                   rc1.d
audisp                      ipsec.secrets             rc2.d
audit                       iscsi                     rc3.d
avahi                       issue                     rc4.d
bash_completion.d           issue.net                 rc5.d
bashrc                      java                      rc6.d
binfmt.d                    jdk                       rc.d
bluetooth                   jvm                       rc.local
brltty                      jvm-commmon               rdma
brltty.conf                 kdump.conf                redhat-release
centos-release              kernel                    request-key.conf
centos-release-upstream     krb5.conf                 request-key.d
chkconfig.d                 krb5.conf.d               resolv.conf
chrony.conf                 ksmtuned.conf             rpc
chrony.keys                 ld.so.cache               rpm
cifs-utils                  ld.so.conf                rsyncd.conf
cron.d                      ld.so.conf.d              rsyslog.conf
cron.daily                  libaudit.conf             rsyslog.d
cron.deny                   libibverbs.d              rwtab
cron.hourly                 libnl                     rwtab.d
cron.monthly                libreport                 samba
crontab                     libuser.conf              sane.d
cron.weekly                 libvirt                   sasl2
crypttab                    locale.conf               scl
csh.cshrc                   localtime                 securetty
csh.login                   login.defs                security
cups                        logrotate.conf            selinux
cupshelpers                 logrotate.d               services
dbus-1                      lsm                       sestatus.conf
dconf                       lvm                       setroubleshoot
default                     machine-id                setuptool.d
depmod.d                    magic                     sgml
dhcp                        mail.rc                   shadow
DIR_COLORS                  makedumpfile.conf.sample  shadow-
DIR_COLORS.256color         man_db.conf               shells
DIR_COLORS.lightbgcolor     maven                     skel
dleyna-server-service.conf  mcelog                    smartmontools
dnsmasq.conf                mke2fs.conf               sos.conf
dnsmasq.d                   modprobe.d                speech-dispatcher
dracut.conf                 modules-load.d            ssh
dracut.conf.d               motd                      ssl
drirc                       mtab                      statetab
e2fsck.conf                 mtools.conf               statetab.d
enscript.cfg                multipath                 subgid
environment                 my.cnf                    subuid
ethertypes                  my.cnf.d                  subversion
exports                     nanorc                    sudo.conf
exports.d                   netconfig                 sudoers
favicon.png                 NetworkManager            sudoers.d
fcoe                        networks                  sudo-ldap.conf
festival                    nfs.conf                  sysconfig
filesystems                 nfsmount.conf             sysctl.conf
firefox                     nginx                     sysctl.d
firewalld                   nsswitch.conf             systemd
flatpak                     nsswitch.conf.bak         system-release
fonts                       ntp                       system-release-cpe
fprintd.conf                numad.conf                tcsd.conf
fstab                       oddjob                    terminfo
fuse.conf                   oddjobd.conf              tmpfiles.d
gconf                       oddjobd.conf.d            trusted-key.key
gcrypt                      openldap                  tuned
gdbinit                     opt                       udev
gdbinit.d                   os-release                udisks2
gdm                         PackageKit                updatedb.conf
geoclue                     pam.d                     UPower
GeoIP.conf                  passwd                    usb_modeswitch.conf
GeoIP.conf.default          passwd-                   vconsole.conf
ghostscript                 pbm2ppa.conf              vimrc
gnupg                       pinforc                   virc
GREP_COLORS                 pkcs11                    vmware-tools
groff                       pki                       vsftpd
group                       plymouth                  wgetrc
group-                      pm                        wpa_supplicant
grub2.cfg                   pnm2ppa.conf              wvdial.conf
grub.d                      polkit-1                  X11
gshadow                     popt.d                    xdg
gshadow-                    postfix                   xinetd.d
gss                         ppp                       xml
gssproxy                    prelink.conf.d            yum
host.conf                   printcap                  yum.conf
hostname                    profile                   yum.repos.d
hosts                       profile.d
hosts.allow                 protocols
[root@localhost etc]# cd /etc/init.d/re
bash: cd: /etc/init.d/re: 没有那个文件或目录
[root@localhost etc]# 
[root@localhost etc]# ls
abrt                        hosts.deny                pulse
adjtime                     hp                        purple
aliases                     idmapd.conf               python
aliases.db                  init.d                    qemu-ga
alsa                        inittab                   qemu-kvm
alternatives                inputrc                   radvd.conf
anacrontab                  iproute2                  ras
asound.conf                 ipsec.conf                rc0.d
at.deny                     ipsec.d                   rc1.d
audisp                      ipsec.secrets             rc2.d
audit                       iscsi                     rc3.d
avahi                       issue                     rc4.d
bash_completion.d           issue.net                 rc5.d
bashrc                      java                      rc6.d
binfmt.d                    jdk                       rc.d
bluetooth                   jvm                       rc.local
brltty                      jvm-commmon               rdma
brltty.conf                 kdump.conf                redhat-release
centos-release              kernel                    request-key.conf
centos-release-upstream     krb5.conf                 request-key.d
chkconfig.d                 krb5.conf.d               resolv.conf
chrony.conf                 ksmtuned.conf             rpc
chrony.keys                 ld.so.cache               rpm
cifs-utils                  ld.so.conf                rsyncd.conf
cron.d                      ld.so.conf.d              rsyslog.conf
cron.daily                  libaudit.conf             rsyslog.d
cron.deny                   libibverbs.d              rwtab
cron.hourly                 libnl                     rwtab.d
cron.monthly                libreport                 samba
crontab                     libuser.conf              sane.d
cron.weekly                 libvirt                   sasl2
crypttab                    locale.conf               scl
csh.cshrc                   localtime                 securetty
csh.login                   login.defs                security
cups                        logrotate.conf            selinux
cupshelpers                 logrotate.d               services
dbus-1                      lsm                       sestatus.conf
dconf                       lvm                       setroubleshoot
default                     machine-id                setuptool.d
depmod.d                    magic                     sgml
dhcp                        mail.rc                   shadow
DIR_COLORS                  makedumpfile.conf.sample  shadow-
DIR_COLORS.256color         man_db.conf               shells
DIR_COLORS.lightbgcolor     maven                     skel
dleyna-server-service.conf  mcelog                    smartmontools
dnsmasq.conf                mke2fs.conf               sos.conf
dnsmasq.d                   modprobe.d                speech-dispatcher
dracut.conf                 modules-load.d            ssh
dracut.conf.d               motd                      ssl
drirc                       mtab                      statetab
e2fsck.conf                 mtools.conf               statetab.d
enscript.cfg                multipath                 subgid
environment                 my.cnf                    subuid
ethertypes                  my.cnf.d                  subversion
exports                     nanorc                    sudo.conf
exports.d                   netconfig                 sudoers
favicon.png                 NetworkManager            sudoers.d
fcoe                        networks                  sudo-ldap.conf
festival                    nfs.conf                  sysconfig
filesystems                 nfsmount.conf             sysctl.conf
firefox                     nginx                     sysctl.d
firewalld                   nsswitch.conf             systemd
flatpak                     nsswitch.conf.bak         system-release
fonts                       ntp                       system-release-cpe
fprintd.conf                numad.conf                tcsd.conf
fstab                       oddjob                    terminfo
fuse.conf                   oddjobd.conf              tmpfiles.d
gconf                       oddjobd.conf.d            trusted-key.key
gcrypt                      openldap                  tuned
gdbinit                     opt                       udev
gdbinit.d                   os-release                udisks2
gdm                         PackageKit                updatedb.conf
geoclue                     pam.d                     UPower
GeoIP.conf                  passwd                    usb_modeswitch.conf
GeoIP.conf.default          passwd-                   vconsole.conf
ghostscript                 pbm2ppa.conf              vimrc
gnupg                       pinforc                   virc
GREP_COLORS                 pkcs11                    vmware-tools
groff                       pki                       vsftpd
group                       plymouth                  wgetrc
group-                      pm                        wpa_supplicant
grub2.cfg                   pnm2ppa.conf              wvdial.conf
grub.d                      polkit-1                  X11
gshadow                     popt.d                    xdg
gshadow-                    postfix                   xinetd.d
gss                         ppp                       xml
gssproxy                    prelink.conf.d            yum
host.conf                   printcap                  yum.conf
hostname                    profile                   yum.repos.d
hosts                       profile.d
hosts.allow                 protocols
[root@localhost etc]# cd /etc/init.d/
[root@localhost init.d]# ls
functions  netconsole  network  README
[root@localhost init.d]# cd ../
[root@localhost etc]# cd /etc/redis
bash: cd: /etc/redis: 没有那个文件或目录
[root@localhost etc]# mkdir redis
[root@localhost etc]# cd redis
[root@localhost redis]# cp /usr/local/redis-4.0.10/utils/redis_init_script /etc/init.d/redisd
cp: 无法获取"/usr/local/redis-4.0.10/utils/redis_init_script" 的文件状态(stat): 没有那个文件或目录
[root@localhost redis]# cp /usr/l
lib/     lib64/   libexec/ local/   
[root@localhost redis]# cp /usr/local/redis/redis
redis-cli     redis.conf    redis-server  
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/utils/re
redis-copy.rb          redis_init_script.tpl  releasetools/
redis_init_script      redis-sha1.rb          
[root@localhost redis]# cp /usr/local/src/redis-4.0.10/utils/redis_init_script /etc/init.d/redis
[root@localhost redis]# chkconfig redis on
shell-init: 获取当前目录时出错: getcwd: 无法访问父目录: 没有那个文件或目录
[root@localhost redis]# cd /etc/init.d
[root@localhost init.d]# chkconfig redis on
[root@localhost init.d]# service redis start
Starting Redis server...
/etc/init.d/redis: line 28: /usr/local/bin/redis-server: No such file or directory
[root@localhost init.d]# vim ./redis 
[root@localhost init.d]# service redis on
Please use start or stop as first argument
[root@localhost init.d]# service redis start
Starting Redis server...
10573:C 26 Jun 09:31:44.721 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10573:C 26 Jun 09:31:44.721 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=10573, just started
10573:C 26 Jun 09:31:44.721 # Configuration loaded
[root@localhost init.d]# service redis stop
Stopping ...
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
^C
[root@localhost init.d]# ps -ef|grep redi
root      10574      1  0 09:31 ?        00:00:00 /usr/local/redis/redis-server 127.0.0.1:6379
root      10613   2881  0 09:32 pts/0    00:00:00 grep --color=auto redi
[root@localhost init.d]# ps -ef|grep redis
root      10574      1  0 09:31 ?        00:00:00 /usr/local/redis/redis-server 127.0.0.1:6379
root      10615   2881  0 09:32 pts/0    00:00:00 grep --color=auto redis
[root@localhost init.d]# service redis start
/var/run/redis_6379.pid exists, process is already running or crashed
[root@localhost init.d]# service redis stop
Stopping ...
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
^C
[root@localhost init.d]# /usr/local/redis/redis-cli shutdown
(error) NOAUTH Authentication required.
[root@localhost init.d]# /usr/local/redis/redis-cli -a 123456
Warning: Using a password with '-a' option on the command line interface may not be safe.
127.0.0.1:6379> 123456
(error) ERR unknown command '123456'
127.0.0.1:6379> shutdown
not connected> quit
[root@localhost init.d]# ps -ef|grep redis
root      10737   2881  0 09:39 pts/0    00:00:00 grep --color=auto redis
[root@localhost init.d]# vi /etc/init.d/redis
[root@localhost init.d]# service redis start
/etc/init.d/redis: line 16: -a: command not found
Starting Redis server...
10788:C 26 Jun 09:41:03.390 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10788:C 26 Jun 09:41:03.390 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=10788, just started
10788:C 26 Jun 09:41:03.390 # Configuration loaded
[root@localhost init.d]# service redis stop
/etc/init.d/redis: line 16: -a: command not found
Stopping ...
/etc/init.d/redis: line 39: -p: command not found
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
^C
[root@localhost init.d]# vi redis
[root@localhost init.d]# service redis stop
Stopping ...
Warning: Using a password with '-a' option on the command line interface may not be safe.
Redis stopped
[root@localhost init.d]# service redis start
Starting Redis server...
10867:C 26 Jun 09:43:53.666 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10867:C 26 Jun 09:43:53.666 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=10867, just started
10867:C 26 Jun 09:43:53.666 # Configuration loaded
[root@localhost init.d]# service redis stop
Stopping ...
Warning: Using a password with '-a' option on the command line interface may not be safe.
Redis stopped
[root@localhost init.d]# 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在PHP中使用Redis,首先需要对Redis服务器进行配置,并确保PHP扩展(phpredis或predis)已经安装。以下是一般的配置步骤: 1. **安装Redis扩展**: - 对于phpredis扩展:在Composer中添加`"ext-redis": "^5.0"`,然后运行`composer install`。 - 对于predis扩展:直接通过PECL安装`pecl install predis`,然后编译和配置PHP以启用。 2. **配置Redis服务器**: - 配置Redis服务器的守护进程,例如启动键值存储服务 `redis-server` 或者在生产环境中可能使用Redis集群。 - 确保Redis监听的端口(默认是6379),可以在`/etc/redis/redis.conf`文件中进行设置。 3. **连接到Redis** (使用phpredis): ```php $redis = new Redis(); $redis->connect('localhost', 6379); // 连接本地Redis服务器 ``` 4. **配置连接参数** (phpredis支持配置数组): ```php $redis = new Redis([ 'host' => 'your.redis.server.com', 'port' => 6379, 'timeout' => 5, // 设置超时时间 'database' => 0, // 设置数据库索引 ]); ``` 5. **验证连接**: ```php if (!$redis->ping()) { die("无法连接到Redis"); } ``` 6. **启用持久化**: 如果你想让Redis保存数据到磁盘,需要在Redis配置文件中开启AOF或RDB持久化,并确保PHP脚本有足够的权限。 7. **安全性**: 配置好密码保护,可以通过`require 'auth.php';`并设置`$redis->auth('your-password')`来实现。 8. **关闭连接**: 在操作完成后记得关闭连接,以释放资源: ```php $redis->close(); ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值