zoukankan      html  css  js  c++  java
  • Mac redis安装

    1. Download, extract and compile Redis with:
      #进入下载目录
      $ cd ...
      $ wget http://download.redis.io/releases/redis-4.0.1.tar.gz
      $ tar xzf redis-4.0.1.tar.gz
      $ cd redis-4.0.1
      $ make
    2. The binaries that are now compiled are available in the src directory. Run Redis with:
      $ src/redis-server
    3. You can interact with Redis using the built-in client:
      $ src/redis-cli
      redis> set foo bar
      OK
      redis> get foo
      "bar"
    4. 指定缓存数据序列化位置(补充
      $ vi redis.con
      ...
      dir /Users/.../Documents/MySoft/redis_data/
      ...
    5. 配置环境变量  redis/src
      $ cd /etc
      $ vi profile
      ...
      export PATH="/Users/.../Documents/MySoft/redis-4.0.1/src:$PATH"
      ...
  • 相关阅读:
    第四次作业
    第三次作业
    Java.14
    Java.13
    JAVA.12
    JAVA.11
    JAVA.10
    JAVA.9
    JAVA.8
    JAVA.7
  • 原文地址:https://www.cnblogs.com/cb0327/p/7326963.html
Copyright © 2011-2022 走看看