redis4.0.1安装教程

来源:互联网 发布:淘宝小号点数是什么 编辑:程序博客网 时间:2024/06/06 02:38

1:下载redis4.0.1 并解压


      $ 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



2:编译安装redis
      $ make   #编译
    $ cd src && make install PREFIX=/usr/local/redis #安装 指定安装目录 



3:指定配置文件
   
   $ mkdir -p /usr/local/redis/conf
   $ cp redis.conf /usr/local/redis/conf



4:启动redis


  $ /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis.conf #启动redis 指定配置文件
  $ ps -aux|grep redis
    root     30908  0.0  0.0 143904  2580 pts/0    Tl   10:06   0:00 /usr/local/redis/bin/redis-server 127.0.0.1:6379                  
    root     30927  0.0  0.0 103252   816 pts/0    R+   10:11   0:00 grep redis

   
原创粉丝点击