Centos编译Redis4.0.9源码过程记录 You need tcl 8.5 or newer in order to run the Redis test

  1. mkdir /home/redis
  2. cd /home/redis
  3. 下载源码 wget https://codeload.github.com/antirez/redis/tar/4.0.9
  4. 解压源码包 tar -zxvf  redis-4.0.9.tar
  5. 进入文件夹 cd redis-4.0.9
  6. make
  7. 完成之后,输入make test, 如果出现错误,

    You need tcl 8.5 or newer in order to run the Redis test, 则安装tcl

  8. yun intall -y tcl 或
    wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz  
    sudo tar xzvf tcl8.6.1-src.tar.gz  -C /usr/local/  
    cd  /usr/local/tcl8.6.1/unix/  
    sudo ./configure  
    sudo make  
    sudo make install 
  9. 运行 redis
cd src 
./ redis-server

OR
./redis-server --port 9999 --slaveof 127.0.0.1 6379
./redis-server /etc/redis/6379.conf --loglevel debug


 

猜你喜欢

转载自www.cnblogs.com/lenmom/p/9073479.html