安装redis


安装redis记录:

环境

Linux wuyingbo 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux

1、下载

redis-2.4.13.tar.gz                 是稳定版本stable

2、解压

tar -xzvf  redis-2.4.13.tar.gz

3、make

4、cd src

5、运行

              ./redis-server        如果想在后台运行就执行       nohup  ./redis-server &

6、测试             ./redis-cli

set hello "world"

get hello


简单入门:

  1. import redis.clients.jedis.Jedis;  
  2.   
  3.   
  4. public class RedisTest {  
  5.     public static void main(String[] args) {  
  6. //      Jedis(java.lang.String host, int port, int timeout)   
  7.         Jedis jedis = new Jedis("127.0.0.1",6379);  
  8.         jedis.connect();  
  9.         jedis.set("java redis","hello java redis - jedis.");  
  10.         String  value  = jedis.get("java redis");  
  11.         System.out.println(value);  
  12.     }  
  13. }  


[12592] 21 May 17:12:02 # 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.

我将  vm.overcommit_memory = 1  写到了 /etc/sysctl.conf   中了。


  1. root@wuyingbo:/usr/local/redis-2.4.13# make clean  
  2. cd src && make clean  
  3. make[1]: 正在进入目录 `/usr/local/redis-2.4.13/src'  
  4. rm -rf redis-server redis-benchmark redis-cli redis-check-dump redis-check-aof *.o *.gcda *.gcno *.gcov  
  5. make[1]:正在离开目录 `/usr/local/redis-2.4.13/src'  
  6. cd deps/hiredis && make clean  
  7. make[1]: 正在进入目录 `/usr/local/redis-2.4.13/deps/hiredis'  
  8. rm -rf libhiredis.so libhiredis.a hiredis-example hiredis-test hiredis-example* *.o *.gcda *.gcno *.gcov  
  9. make[1]:正在离开目录 `/usr/local/redis-2.4.13/deps/hiredis'  
  10. cd deps/linenoise && make clean  
  11. make[1]: 正在进入目录 `/usr/local/redis-2.4.13/deps/linenoise'  
  12. rm -f linenoise_example *.o  
  13. make[1]:正在离开目录 `/usr/local/redis-2.4.13/deps/linenoise'  
  14. (cd deps/jemalloc && make distclean)  
  15. make[1]: 正在进入目录 `/usr/local/redis-2.4.13/deps/jemalloc'  
  16. rm -f 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/chunk_swap.o src/ckh.o src/ctl.o src/extent.o src/hash.o src/huge.o src/mb.o src/mutex.o src/prof.o src/rtree.o src/stats.o src/tcache.o  
  17. rm -f src/jemalloc.pic.o src/arena.pic.o src/atomic.pic.o src/base.pic.o src/bitmap.pic.o src/chunk.pic.o src/chunk_dss.pic.o src/chunk_mmap.pic.o src/chunk_swap.pic.o src/ckh.pic.o src/ctl.pic.o src/extent.pic.o src/hash.pic.o src/huge.pic.o src/mb.pic.o src/mutex.pic.o src/prof.pic.o src/rtree.pic.o src/stats.pic.o src/tcache.pic.o  
  18. rm -f src/jemalloc.d src/arena.d src/atomic.d src/base.d src/bitmap.d src/chunk.d src/chunk_dss.d src/chunk_mmap.d src/chunk_swap.d src/ckh.d src/ctl.d src/extent.d src/hash.d src/huge.d src/mb.d src/mutex.d src/prof.d src/rtree.d src/stats.d src/tcache.d  
  19. rm -f src/jemalloc.pic.d src/arena.pic.d src/atomic.pic.d src/base.pic.d src/bitmap.pic.d src/chunk.pic.d src/chunk_dss.pic.d src/chunk_mmap.pic.d src/chunk_swap.pic.d src/ckh.pic.d src/ctl.pic.d src/extent.pic.d src/hash.pic.d src/huge.pic.d src/mb.pic.d src/mutex.pic.d src/prof.pic.d src/rtree.pic.d src/stats.pic.d src/tcache.pic.d  
  20. rm -f test/allocated test/allocm test/bitmap test/mremap test/posix_memalign test/rallocm test/thread_arena  
  21. rm -f test/allocated.o test/allocm.o test/bitmap.o test/mremap.o test/posix_memalign.o test/rallocm.o test/thread_arena.o  
  22. rm -f test/allocated.d test/allocm.d test/bitmap.d test/mremap.d test/posix_memalign.d test/rallocm.d test/thread_arena.d  
  23. rm -f test/allocated.out test/allocm.out test/bitmap.out test/mremap.out test/posix_memalign.out test/rallocm.out test/thread_arena.out  
  24. rm -f lib/libjemalloc.so.1 lib/libjemalloc.so lib/libjemalloc_pic.a lib/libjemalloc.a  
  25. rm -rf autom4te.cache  
  26. rm -f config.log  
  27. rm -f config.status  
  28. rm -f config.stamp  
  29. rm -f include/jemalloc/jemalloc_defs.h  
  30. rm -f Makefile doc/html.xsl doc/manpages.xsl doc/jemalloc.xml include/jemalloc/jemalloc.h include/jemalloc/internal/jemalloc_internal.h test/jemalloc_test.h  
  31. make[1]:正在离开目录 `/usr/local/redis-2.4.13/deps/jemalloc'  
  32. root@wuyingbo:/usr/local/redis-2.4.13# make  
  33. cd src && make all  
  34. make[1]: 正在进入目录 `/usr/local/redis-2.4.13/src'  
  35. MAKE hiredis  
  36. make[2]: 正在进入目录 `/usr/local/redis-2.4.13/deps/hiredis'  
  37. cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  net.c  
  38. cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  hiredis.c  
  39. cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  sds.c  
  40. cc -std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb  async.c  
  41. ar rcs libhiredis.a net.o hiredis.o sds.o async.o  
  42. make[2]:正在离开目录 `/usr/local/redis-2.4.13/deps/hiredis'  
  43. MAKE linenoise  
  44. make[2]: 正在进入目录 `/usr/local/redis-2.4.13/deps/linenoise'  
  45. cc  -c -Wall -W -Os -g linenoise.c  
  46. cc  -c -Wall -W -Os -g example.c  
  47. cc  -Wall -W -Os -g -o linenoise_example linenoise.o example.o  
  48. make[2]:正在离开目录 `/usr/local/redis-2.4.13/deps/linenoise'  
  49. MAKE jemalloc  
  50. checking for xsltproc... no  
  51. checking for gcc... gcc  
  52. checking whether the C compiler works... yes  
  53. checking for C compiler default output file name... a.out  
  54. checking for suffix of executables...   
  55. checking whether we are cross compiling... no  
  56. checking for suffix of object files... o  
  57. checking whether we are using the GNU C compiler... yes  
  58. checking whether gcc accepts -g... yes  
  59. checking for gcc option to accept ISO C89... none needed  
  60. checking whether compiler supports -std=gnu99... yes  
  61. checking whether compiler supports -Wall... yes  
  62. checking whether compiler supports -pipe... yes  
  63. checking whether compiler supports -g3... yes  
  64. checking how to run the C preprocessor... gcc -E  
  65. checking for grep that handles long lines and -e... /bin/grep  
  66. checking for egrep... /bin/grep -E  
  67. checking for ANSI C header files... yes  
  68. checking for sys/types.h... yes  
  69. checking for sys/stat.h... yes  
  70. checking for stdlib.h... yes  
  71. checking for string.h... yes  
  72. checking for memory.h... yes  
  73. checking for strings.h... yes  
  74. checking for inttypes.h... yes  
  75. checking for stdint.h... yes  
  76. checking for unistd.h... yes  
  77. checking size of void *... 4  
  78. checking size of int... 4  
  79. checking size of long... 4  
  80. checking build system type... i686-pc-linux-gnu  
  81. checking host system type... i686-pc-linux-gnu  
  82. checking whether __asm__ is compilable... yes  
  83. checking whether __attribute__ syntax is compilable... yes  
  84. checking whether compiler supports -fvisibility=hidden... yes  
  85. checking whether mremap(...MREMAP_FIXED...) is compilable... yes  
  86. checking for a BSD-compatible install... /usr/bin/install -c  
  87. checking for ranlib... ranlib  
  88. checking for ar... /usr/bin/ar  
  89. checking for ld... /usr/bin/ld  
  90. checking for autoconf... no  
  91. checking whether compiler supports -O3... yes  
  92. checking whether compiler supports -funroll-loops... yes  
  93. checking configured backtracing method... N/A  
  94. checking STATIC_PAGE_SHIFT... 12  
  95. checking pthread.h usability... yes  
  96. checking pthread.h presence... yes  
  97. checking for pthread.h... yes  
  98. checking for pthread_create in -lpthread... yes  
  99. checking dlfcn.h usability... yes  
  100. checking dlfcn.h presence... yes  
  101. checking for dlfcn.h... yes  
  102. checking for dlopen in -ldl... yes  
  103. checking for TLS... yes  
  104. checking for ffsl... yes  
  105. checking whether Darwin OSAtomic*() is compilable... no  
  106. checking whether Darwin OSSpin*() is compilable... no  
  107. checking for memalign... yes  
  108. checking for valloc... yes  
  109. checking for stdbool.h that conforms to C99... yes  
  110. checking for _Bool... yes  
  111. configure: creating ./config.status  
  112. config.status: creating Makefile  
  113. config.status: creating doc/html.xsl  
  114. config.status: creating doc/manpages.xsl  
  115. config.status: creating doc/jemalloc.xml  
  116. config.status: creating include/jemalloc/jemalloc.h  
  117. config.status: creating include/jemalloc/internal/jemalloc_internal.h  
  118. config.status: creating test/jemalloc_test.h  
  119. config.status: creating config.stamp  
  120. config.status: creating include/jemalloc/jemalloc_defs.h  
  121. ===============================================================================  
  122. jemalloc version   : 2.2.5-0-gfc1bb70e5f0d9a58b39efa39cc549b5af5104760  
  123.   
  124. CC                 : gcc  
  125. CPPFLAGS           :  -D_GNU_SOURCE -D_REENTRANT  
  126. CFLAGS             : -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops  
  127. LDFLAGS            :   
  128. LIBS               :  -lpthread -ldl  
  129. RPATH_EXTRA        :   
  130.   
  131. XSLTPROC           :   
  132. XSLROOT            : /usr/share/xml/docbook/stylesheet/docbook-xsl  
  133.   
  134. PREFIX             : /usr/local  
  135. BINDIR             : /usr/local/bin  
  136. INCLUDEDIR         : /usr/local/include  
  137. LIBDIR             : /usr/local/lib  
  138. DATADIR            : /usr/local/share  
  139. MANDIR             : /usr/local/share/man  
  140.   
  141. srcroot            :   
  142. abs_srcroot        : /usr/local/redis-2.4.13/deps/jemalloc/  
  143. objroot            :   
  144. abs_objroot        : /usr/local/redis-2.4.13/deps/jemalloc/  
  145.   
  146. JEMALLOC_PREFIX    : je_  
  147. JEMALLOC_PRIVATE_NAMESPACE  
  148.                    :   
  149. install_suffix     :   
  150. autogen            : 0  
  151. cc-silence         : 1  
  152. debug              : 0  
  153. stats              : 0  
  154. prof               : 0  
  155. prof-libunwind     : 0  
  156. prof-libgcc        : 0  
  157. prof-gcc           : 0  
  158. tiny               : 1  
  159. tcache             : 1  
  160. fill               : 0  
  161. xmalloc            : 0  
  162. sysv               : 0  
  163. swap               : 0  
  164. dss                : 0  
  165. dynamic_page_shift : 0  
  166. lazy_lock          : 1  
  167. tls                : 1  
  168. ===============================================================================  
  169. make[2]: 正在进入目录 `/usr/local/redis-2.4.13/deps/jemalloc'  
  170. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/jemalloc.o src/jemalloc.c  
  171. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  172.                  from src/jemalloc.c:2:  
  173. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  174. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  175. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  176. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/arena.o src/arena.c  
  177. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  178.                  from src/arena.c:2:  
  179. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  180. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  181. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  182. src/arena.c: 在函数‘arena_run_split’中:  
  183. src/arena.c:315:9: 警告: 变量‘old_ndirty’被设定但未被使用 [-Wunused-but-set-variable]  
  184. src/arena.c: 在函数‘bin_info_run_size_calc’中:  
  185. src/arena.c:2449:25: 警告: 变量‘good_hdr_size’被设定但未被使用 [-Wunused-but-set-variable]  
  186. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/atomic.o src/atomic.c  
  187. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  188.                  from src/atomic.c:2:  
  189. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  190. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  191. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  192. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/base.o src/base.c  
  193. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  194.                  from src/base.c:2:  
  195. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  196. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  197. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  198. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/bitmap.o src/bitmap.c  
  199. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  200.                  from src/bitmap.c:2:  
  201. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  202. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  203. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  204. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk.o src/chunk.c  
  205. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  206.                  from src/chunk.c:2:  
  207. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  208. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  209. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  210. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_dss.o src/chunk_dss.c  
  211. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  212.                  from src/chunk_dss.c:2:  
  213. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  214. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  215. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  216. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_mmap.o src/chunk_mmap.c  
  217. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  218.                  from src/chunk_mmap.c:2:  
  219. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  220. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  221. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  222. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/chunk_swap.o src/chunk_swap.c  
  223. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  224.                  from src/chunk_swap.c:2:  
  225. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  226. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  227. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  228. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ckh.o src/ckh.c  
  229. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  230.                  from src/ckh.c:38:  
  231. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  232. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  233. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  234. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/ctl.o src/ctl.c  
  235. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  236.                  from src/ctl.c:2:  
  237. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  238. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  239. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  240. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/extent.o src/extent.c  
  241. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  242.                  from src/extent.c:2:  
  243. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  244. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  245. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  246. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/hash.o src/hash.c  
  247. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  248.                  from src/hash.c:2:  
  249. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  250. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  251. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  252. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/huge.o src/huge.c  
  253. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  254.                  from src/huge.c:2:  
  255. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  256. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  257. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  258. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mb.o src/mb.c  
  259. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  260.                  from src/mb.c:2:  
  261. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  262. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  263. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  264. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/mutex.o src/mutex.c  
  265. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  266.                  from src/mutex.c:2:  
  267. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  268. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  269. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  270. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/prof.o src/prof.c  
  271. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  272.                  from src/prof.c:2:  
  273. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  274. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  275. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  276. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/rtree.o src/rtree.c  
  277. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  278.                  from src/rtree.c:2:  
  279. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  280. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  281. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  282. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/stats.o src/stats.c  
  283. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  284.                  from src/stats.c:2:  
  285. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  286. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  287. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  288. src/stats.c: 在函数‘stats_print’中:  
  289. src/stats.c:394:7: 警告: 变量‘large’被设定但未被使用 [-Wunused-but-set-variable]  
  290. src/stats.c:393:7: 警告: 变量‘bins’被设定但未被使用 [-Wunused-but-set-variable]  
  291. src/stats.c:392:7: 警告: 变量‘unmerged’被设定但未被使用 [-Wunused-but-set-variable]  
  292. src/stats.c:391:7: 警告: 变量‘merged’被设定但未被使用 [-Wunused-but-set-variable]  
  293. gcc -std=gnu99 -Wall -pipe -g3 -fvisibility=hidden -O3 -funroll-loops -c -D_GNU_SOURCE -D_REENTRANT -Iinclude -Iinclude -o src/tcache.o src/tcache.c  
  294. In file included from include/jemalloc/internal/jemalloc_internal.h:584:0,  
  295.                  from src/tcache.c:2:  
  296. include/jemalloc/internal/tcache.h: 在函数‘tcache_dalloc_large’中:  
  297. include/jemalloc/internal/tcache.h:393:9: 警告: 变量‘pageind’被设定但未被使用 [-Wunused-but-set-variable]  
  298. include/jemalloc/internal/tcache.h:391:11: 警告: 变量‘arena’被设定但未被使用 [-Wunused-but-set-variable]  
  299. 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/chunk_swap.o src/ckh.o src/ctl.o src/extent.o src/hash.o src/huge.o src/mb.o src/mutex.o src/prof.o src/rtree.o src/stats.o src/tcache.o  
  300. make[2]:正在离开目录 `/usr/local/redis-2.4.13/deps/jemalloc'  
  301.     CC ae.o  
  302.     CC anet.o  
  303.     CC redis-benchmark.o  
  304.     CC sds.o  
  305.     CC adlist.o  
  306.     CC zmalloc.o  
  307. MAKE hiredis  
  308. make[2]: 正在进入目录 `/usr/local/redis-2.4.13/deps/hiredis'  
  309. make[2]: 没有什么可以做的为 `static'。  
  310. make[2]:正在离开目录 `/usr/local/redis-2.4.13/deps/hiredis'  
  311.     LINK redis-benchmark  
  312.     CC redis-cli.o  
  313.     CC release.o  
  314.     LINK redis-cli  
  315.     CC redis-check-dump.o  
  316.     CC lzf_c.o  
  317.     CC lzf_d.o  
  318.     LINK redis-check-dump  
  319.     CC redis-check-aof.o  
  320.     LINK redis-check-aof  
  321.     CC dict.o  
  322.     CC redis.o  
  323.     CC pqsort.o  
  324.     CC zipmap.o  
  325.     CC sha1.o  
  326.     CC ziplist.o  
  327.     CC networking.o  
  328.     CC util.o  
  329.     CC object.o  
  330.     CC db.o  
  331.     CC replication.o  
  332.     CC rdb.o  
  333.     CC t_string.o  
  334.     CC t_list.o  
  335.     CC t_set.o  
  336.     CC t_zset.o  
  337.     CC t_hash.o  
  338.     CC config.o  
  339.     CC aof.o  
  340.     CC vm.o  
  341.     CC pubsub.o  
  342.     CC multi.o  
  343.     CC debug.o  
  344.     CC sort.o  
  345.     CC intset.o  
  346.     CC syncio.o  
  347.     CC slowlog.o  
  348.     CC bio.o  
  349.     CC memtest.o  
  350. memtest.c: 在函数‘memtest_test’中:  
  351. memtest.c:208:9: 警告: 大整数隐式截断为无符号类型 [-Woverflow]  
  352. memtest.c:208:9: 警告: 大整数隐式截断为无符号类型 [-Woverflow]  
  353.     LINK redis-server  
  354.   
  355. Hint: To run 'make test' is a good idea ;)  
  356.   
  357. make[1]:正在离开目录 `/usr/local/redis-2.4.13/src'  


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值