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