redis-安裝

 redis-3.0.5.tar.gz 。  downLoad:http://redis.io/ html

step1. 將redis-3.0.5.tar.gz解壓到指定目錄,並切換至該目錄 c++

tar -zxvf redis-3.0.5.tar.gz -C ./ProgramFile/redis/ redis

cd ~/ProgramFile/redis/redis-3.0.5 shell

step2.進行編譯 spa

make code

可能出現的錯誤 server

1.make[2]: cc: Command not found htm

異常緣由:沒有安裝gcc blog

解決方案:yum install gcc-c++ get

2. zmalloc.h:51:31: error: jemalloc/jemalloc.h: No such file or directory

異常緣由:一些編譯依賴或原來編譯遺留出現的問題

解決方案:make distclean。清理一下,而後再make。

step3.進行 make test

make test

可能出現的錯誤:

錯誤1


You need tcl 8.5 or newer in order to run the Redis test

異常緣由:沒有安裝tcl

解決方案:yum install -y tcl。

錯誤2
!!! WARNING The following tests failed:

*** [err]: Server is able to generate a stack trace on selected systems in tests/integration/logging.tcl
expected stack trace not found into log file
Cleanup: may take some time... OK

緣由未知:但即便出現了上面的問題最後仍是能將編譯後的redis運行起來

有侍解決

setp4 啓動 redis

./ProgramFile/redis/redis-3.0.5/src/redis-server  ./redis.conf

step5 redis啓動客戶端

./ProgramFile/redis/redis-3.0.5/src/redis-cli


參考出處:http://www.cnblogs.com/haoxinyue/p/3620648.html

相關文章
相關標籤/搜索