centos 下安装redis和python以及python-redis-nosql

centos下安装 redis和python以及python-redis

[root@localhost ~]#ps -ef | grep redis

root      3675 3652  0 07:10 pts/1    00:00:00 grep redis

[root@localhost ~]#yum install redis

Loaded plugins:fastestmirror, security

Loading mirrorspeeds from cached hostfile

 * base: mirrors.tuna.tsinghua.edu.cn

 * epel: mirrors.hust.edu.cn

 * extras: mirrors.tuna.tsinghua.edu.cn

 * updates: mirrors.tuna.tsinghua.edu.cn

base                                                    | 1.1 kB     00:00    

epel                                                    | 3.6 kB     00:00    

extras                                                  | 2.1 kB     00:00    

updates                                                 | 1.9 kB     00:00    

Setting up InstallProcess

ResolvingDependencies

--> Runningtransaction check

---> Packageredis.x86_64 0:2.4.10-1.el5 set to be updated

--> FinishedDependency Resolution

 

DependenciesResolved

 

================================================================================

 Package        Arch             Version                  Repository      Size

================================================================================

Installing:

 redis          x86_64           2.4.10-1.el5             epel           305 k

 

Transaction Summary

================================================================================

Install       1 Package(s)

Upgrade       0 Package(s)

 

Total download size:305 k

Is this ok [y/N]: y

DownloadingPackages:

redis-2.4.10-1.el5.x86_64.rpm                            | 305 kB     00:00    

Runningrpm_check_debug

Running TransactionTest

Finished TransactionTest

Transaction TestSucceeded

Running Transaction

  Installing    : redis                                                   1/1

 

Installed:

  redis.x86_64 0:2.4.10-1.el5                                                  

 

Complete!

[root@localhost ~]#

 

 

 

[root@localhost /]#/usr/sbin/redis-server /etc/redis.conf

[root@localhost /]#telnet 127.0.0.1 6379

Trying 127.0.0.1...

Connected tolocalhost.localdomain (127.0.0.1).

Escape character is'^]'.

set hoge 4

+OK

fuga

 

[root@localhost /]#yum install python-redis

Loaded plugins:fastestmirror, security

Loading mirrorspeeds from cached hostfile

 * base: mirrors.tuna.tsinghua.edu.cn

 * epel: mirrors.hust.edu.cn

 * extras: mirrors.tuna.tsinghua.edu.cn

 * updates: mirrors.tuna.tsinghua.edu.cn

Setting up InstallProcess

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值