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

    安装redis

    1.进入一个自己想要的目录下面下载安装包

      wget http://redis.googlecode.com/files/redis-2.4.10.tar.gz

    2.将源代码解压

      tar -zxvf redis-2.4.10.tar.gz

    3.进入解压的文件夹里面

      cd redis-2.4.10/  (进入之后最好看一下README,里面比较详细)

    4.对源码编译、安装

      make

      make install

    5.安装完之后会提示你测试

      make test

      会提示你有两个错误,然后按照他给的提示去安装tclsh8.5就可以了

      apt-get install tclsh8.5

      然后在运行make test就可以了

     安装redis的php扩展

     1.安装php的扩展包

      apt-get install php5-dev

    2.安装git版本控制客户端

      apt-get install git

    3.从git仓库复制代码

      git clone git://github.com/nicolasff/phpredis.git

    4.进入phpredis进行编译安装

      cd phpredis

      phpize

      ./configure --with-php-config=/usr/bin/php-config

      make

      make install

    5.配置php.ini

      extension=/usr/lib/php5/20090626+lfs/redis.so  //这里填你自己的路径

    6.重启apache

      service apache2 restart

    查看redis的版本:

      redis-server -v

  • 相关阅读:
    Pandas 基础(8)
    Pandas 基础(7)
    Pandas 基础(6)
    Pandas 基础(5)
    Pandas 基础(4)
    python matplotlib 图表局部放大
    python 带小数点时间格式化
    emacs elpy代码补全功能
    spacemacs 初始安装报错
    视频加载logo 2
  • 原文地址:https://www.cnblogs.com/asif/p/3893066.html
Copyright © 2011-2022 走看看