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


 

相关文章:

  • 2021-05-16
  • 2021-06-01
  • 2022-12-23
  • 2021-07-24
  • 2021-09-28
  • 2021-11-06
  • 2021-11-20
  • 2021-12-01
猜你喜欢
  • 2022-02-19
  • 2021-12-01
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案