`
zhb8015
  • 浏览: 390957 次
  • 性别: Icon_minigender_1
  • 来自: 北京
博客专栏
Group-logo
Spring Roo杂谈
浏览量:0
社区版块
存档分类
最新评论

Install redis for pyton on windows

阅读更多

Downloan redis 2.7.4. The python interface to the reids key-value store. The url:https://github.com/andymccurdy/redis-py
installation the redis for python.

  • to install redis-py: $sudo pip install redis
  • alternatively: $sudo easy_install reids
  • or from source: $sudo python setup.py intall

If you are windows user, put the redis package to $(python path)/lib and install with python setup.py install.
when you input ‘import redis’ and no syntaxerror. That’s mean reids is OK.

then start with redis:
when you start redis with python, you should start redis server, you can setup the redis in local, start redis-server. If your python run with ‘ConnectionError: Error 10061 connecting 127.0.0.1:6379′, that’s mean your redis server has problem.
OK, let’s run python with redis.

import redis
r = redis.StrictRedis(host = '127.0.0.1', port = 6379, db = 0);
r.set('name','kem')
print(r.get('name'))

result:kem

redis server:

分享到:
评论

相关推荐

    redis64 for windows

    "redis64 for windows"是Redis官方为Windows操作系统提供的64位版本,使得在Windows环境下也能便捷地使用Redis服务。 1. Redis的基本概念: - 键值对:Redis的核心数据模型是键值对(Key-Value),键和值都可以是...

    redis 7.0.0 for Windows

    **Redis 7.0.0 for Windows:新一代内存数据存储** Redis,全称为Remote Dictionary Server,是一款开源的、高性能的键值对存储系统,广泛应用于缓存、数据库、消息中间件等多个领域。随着Redis 7.0.0的发布,...

    Redis 7.0 for Windows

    1.这是基于Redis官网最新源码编译的真正Windows服务程序,发布地址:https://github.com/zkteco-home/redis-windows 2.Redis7.0有明显的性能改进,具体请参考相关文档。

    redis-server on windows

    标题“redis-server on windows”表明我们将讨论如何在Windows操作系统上安装和运行Redis服务器。 尽管Redis官方主要推荐在Linux环境下运行,因为它的性能和稳定性在Linux上更佳,但有时出于开发或测试的需求,我们...

    redis 6.2.5 for windows

    Redis can be installed as a Windows Service. 支持如下系统: Windows Vista x64 Windows Server 2008 x64 Windows Server 2012 x64 Windows Server 2016/2019 x64 Windows 7 x64 Windows 10/11 x64 更详细说明...

    Redis for Windows 5.0.14.1

    redis 5.0.14.1 资源打包,方便小伙伴们下载。 压缩文件包含 1.Redis-x64-5.0.14.1.msi 2.Redis-x64-5.0.14.1.zip 3.Source code (zip) 4.Source code (tar.gz)

    redis for windows_3.0

    - 运行`redis-server.exe --service-install`命令安装Redis为Windows服务,以便后台自动启动。 - 配置文件`redis.conf`可以调整各种设置,如端口号、日志级别、持久化策略等。 2. 数据类型: - Redis支持五大...

    redis-windows-7.0.11

    其中最常用的是redis-windows,它是一个Windows下的Redis管理工具,可以方便地安装、配置和管理Redis服务器。 redis-windows提供了一个简单易用的界面,可以让用户轻松地启动、停止和重启Redis服务器,以及管理...

    Windows 上安装 Redis安装,redis7.2安装到windows上面

    在Windows上安装Redis的过程涉及到多个步骤,包括启用必要的Windows功能、安装WSL2(Windows Subsystem for Linux 2)、设置默认WSL版本以及在Linux环境中安装Redis。以下是对这些步骤的详细说明: 1. **启用...

    Redis-2.8 for Windows64

    提供的文档如`Redis on Windows.docx`、`Windows Service Documentation.docx`和`Redis on Windows Release Notes.docx`包含了关于在Windows上安装、配置和使用Redis的详细指南,以及版本更新的详细信息。...

    Redis 7.0.2 for Windows

    Redis 7.0.2 for Windows Redis 7.0 包括了以下一些重要的变化: 1. 将AOF文件的存储方式改为在一个文件夹下存储多个文件。 2. 将持久化文件RDB的版本升级为10,与之前的RDB文件版本不再兼容。 3. 在读取老的RDB...

    redis for windows

    而`Redis on Windows.docx`、`Windows Service Documentation.docx` 和 `Redis on Windows Release Notes.docx` 这些文档,分别提供了关于在Windows上安装和运行Redis的详细指南、服务相关的文档以及版本发布说明,...

    Redis 6.0的Windows版本(64位)

    标题提到的是"Redis 6.0的Windows版本(64位)",这意味着在Windows操作系统上也能运行Redis,这得益于在Windows环境下使用cgywin64进行的编译工作。描述中提到“实测可用”,这为Windows用户提供了在本地开发和测试...

    redis-64 on Windows

    "redis-64 on Windows" 提供的是针对64位Windows操作系统的Redis版本,这使得Windows用户也能利用Redis的强大功能。 Redis的主要特点包括: 1. **内存存储**:Redis的所有数据都存储在内存中,这使得它的读写速度极...

    redis-7.0.11-windows.zip

    1. **install_redis.cmd**:这是一个批处理脚本,用于帮助用户快速安装 Redis 服务。它通常会处理配置文件的设置,注册 Redis 为 Windows 服务,并确保 Redis 服务器可以在启动时自动运行。 2. **redis.conf**:这...

    redis for windows 64

    - "Redis on Windows Release Notes.docx":包含了 Redis for Windows 特定版本的发行说明,列出新功能、改进和已知问题。 5. **运行 Redis on Windows** - 要启动 Redis 服务,可以使用 "redis-server.exe" 并...

    windows版Redis1

    4. `Redis on Windows.docx`、`Windows Service Documentation.docx`、`Redis on Windows Release Notes.docx`:这些文档提供了关于在Windows上安装、配置和管理Redis的详细信息,包括服务的创建、操作指南和版本...

    redis for windows 6.0.9.zip

    - 下载:从官方或第三方源获取"redis for windows 6.0.9.zip",解压至合适的位置。 - 启动服务:进入解压后的“bin”目录,运行`redis-server.exe`启动Redis服务器。默认配置文件为`redis.windows.conf`,可以按需...

    redis for Windows 7.0.7 使用cygwin编译

    7. 最后,执行`make install`将Redis安装到系统指定的路径。 压缩包内的文件包括: - `redis.conf`: Redis的配置文件,用于设置Redis服务器的启动参数,如端口号、数据库数量、持久化策略等。 - `redis-server.exe`...

    Redis-7.2.5-Windows-x64-msys2-with-Service

    A single shard cluster leaves failed replicas in CLUSTER SLOTS instead of removing them (redis/redis#12824) Crash in LSET command when replacing small items and exceeding 4GB (redis/redis#12955) ...

Global site tag (gtag.js) - Google Analytics