Redis安装
来源:互联网 发布:淘宝五分钟内拍下 编辑:程序博客网 时间:2024/05/16 14:32
Linux下
$ wget http://download.redis.io/releases/redis-4.0.1.tar.gz
$ make
Ubuntu下
启动
redis-server
查看
redis-cli Redis客户端基本语法
远程redis服务商执行 redis-cli -h host -p port -a password
Mac下
官网http://redis.io/ 下载最新的稳定版本,这里是3.2.0
sudu mv 到 /usr/local/
sudo tar -zxf redis-3.2.0.tar 解压文件
进入解压后的目录 cd redis-3.2.0
sudo make test 测试编译
sudo make install
也可以使用 homebrew,homebrew 是 mac 的包管理器。
执行 brew install redis
启动 redis,可以使用后台服务启动 brew services start redis
或者直接启动:redis-server /usr/local/etc/redis.conf
php安装redis并添加php-redis扩展
sudo -s
apt install software-properties-common
apt install python-software-properties
apt update
apt upgrade
git clone -b php7 https://github.com/phpredis/phpredis.git
cd phpredis
apt install php-dev
phpize
make
make test
vim /etc/php/7.0/fpm/php.ini
添加一行 extension=redis.so
- redis---redis安装
- redis 第一节 安装redis
- redis学习:redis安装
- Redis简介、Redis安装
- redis入门--redis安装
- Redis-Redis安装
- Redis-----1、安装Redis
- 【Redis】redis的安装
- Redis yum安装redis
- redis系列-redis安装
- redis 安装
- redis 安装
- 安装redis
- 安装 Redis
- redis安装
- 安装redis
- 安装redis
- redis 安装
- Mysql多列分组查询 示列详解
- 带权并查集--uva12232 Exclusive-OR
- KMP算法详细讲解
- hdu 1874畅通工程续 floyd
- 鸟叔Linux学习笔记:第二章 主机规划与磁盘分区
- Redis安装
- C++智能指针
- IELTS11 Test4 besides economy, other types of progress are equally important
- 《Java并发编程的艺术》笔记三——锁的升级与对比.md
- RecyclerView系列(4)—XRexyclerView的坑,java.lang.IndexOutOfBoundsException: Inconsistency detected
- [LeetCode]86. Partition List
- python (小)模块简介
- 利用Sympy做数学
- ps的一些使用技巧